diff options
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index c40e10a5..d7bf03ba 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |||
@@ -753,7 +753,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
753 | $this->assertCount(2, $crawler->filter('div[class=entry]')); | 753 | $this->assertCount(2, $crawler->filter('div[class=entry]')); |
754 | } | 754 | } |
755 | 755 | ||
756 | public function testCache() | 756 | public function testShareEntryPublicly() |
757 | { | 757 | { |
758 | $this->logInAs('admin'); | 758 | $this->logInAs('admin'); |
759 | $client = $this->getClient(); | 759 | $client = $this->getClient(); |
@@ -778,6 +778,10 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
778 | $this->assertContains('public', $client->getResponse()->headers->get('cache-control')); | 778 | $this->assertContains('public', $client->getResponse()->headers->get('cache-control')); |
779 | $this->assertContains('s-maxage=25200', $client->getResponse()->headers->get('cache-control')); | 779 | $this->assertContains('s-maxage=25200', $client->getResponse()->headers->get('cache-control')); |
780 | $this->assertNotContains('no-cache', $client->getResponse()->headers->get('cache-control')); | 780 | $this->assertNotContains('no-cache', $client->getResponse()->headers->get('cache-control')); |
781 | $this->assertContains('og:title', $client->getResponse()->getContent()); | ||
782 | $this->assertContains('og:type', $client->getResponse()->getContent()); | ||
783 | $this->assertContains('og:url', $client->getResponse()->getContent()); | ||
784 | $this->assertContains('og:image', $client->getResponse()->getContent()); | ||
781 | 785 | ||
782 | // sharing is now disabled | 786 | // sharing is now disabled |
783 | $client->getContainer()->get('craue_config')->set('share_public', 0); | 787 | $client->getContainer()->get('craue_config')->set('share_public', 0); |