aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-05-11 17:39:21 +0200
committerGitHub <noreply@github.com>2017-05-11 17:39:21 +0200
commit06568b15bb9e9116fa4d4a42246e1b0e497bbf25 (patch)
tree66bac04bfd2ea2bf7571502dee4f14623c9d996e /tests/Wallabag
parent7987816d1e83267199c170279213412c6086e665 (diff)
parent1517d5772db05ce86b9958dc6545471d8702bf60 (diff)
downloadwallabag-06568b15bb9e9116fa4d4a42246e1b0e497bbf25.tar.gz
wallabag-06568b15bb9e9116fa4d4a42246e1b0e497bbf25.tar.zst
wallabag-06568b15bb9e9116fa4d4a42246e1b0e497bbf25.zip
Merge pull request #3108 from wallabag/store-headers
Added headers field in Entry
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index 35438c83..698e5e13 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -142,6 +142,7 @@ class EntryControllerTest extends WallabagCoreTestCase
142 $this->assertContains('Google', $content->getTitle()); 142 $this->assertContains('Google', $content->getTitle());
143 $this->assertEquals('2015-03-28 15:37:39', $content->getPublishedAt()->format('Y-m-d H:i:s')); 143 $this->assertEquals('2015-03-28 15:37:39', $content->getPublishedAt()->format('Y-m-d H:i:s'));
144 $this->assertEquals('Morgane Tual', $author[0]); 144 $this->assertEquals('Morgane Tual', $author[0]);
145 $this->assertArrayHasKey('x-varnish1', $content->getHeaders());
145 } 146 }
146 147
147 public function testPostWithMultipleAuthors() 148 public function testPostWithMultipleAuthors()
@@ -914,7 +915,7 @@ class EntryControllerTest extends WallabagCoreTestCase
914 $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $entry); 915 $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $entry);
915 $this->assertEquals($url, $entry->getUrl()); 916 $this->assertEquals($url, $entry->getUrl());
916 $this->assertContains('Perpignan', $entry->getTitle()); 917 $this->assertContains('Perpignan', $entry->getTitle());
917 $this->assertContains('/d9bc0fcd.jpeg', $entry->getContent()); 918 $this->assertContains('/c4789a7f.jpeg', $entry->getContent());
918 919
919 $client->getContainer()->get('craue_config')->set('download_images_enabled', 0); 920 $client->getContainer()->get('craue_config')->set('download_images_enabled', 0);
920 } 921 }