aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-07 14:30:46 +0200
committerGitHub <noreply@github.com>2016-10-07 14:30:46 +0200
commitc8d2dcdafe95c7986bb9fdaa7998417a014bf6fa (patch)
tree1b9f358afc7483095323eca874bc1adf7aaea2ff /tests/Wallabag
parentbf71a734f64a911549e188a5c69ac8e08eec896e (diff)
parent21d82c3c5d211ee3e30cf71d2de3ebac0d63da54 (diff)
downloadwallabag-c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa.tar.gz
wallabag-c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa.tar.zst
wallabag-c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa.zip
Merge pull request #2383 from wallabag/add-info-publich-articles
Added OpenGraph support for public articles
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index c40e10a5..03267e76 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,9 @@ 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());
781 784
782 // sharing is now disabled 785 // sharing is now disabled
783 $client->getContainer()->get('craue_config')->set('share_public', 0); 786 $client->getContainer()->get('craue_config')->set('share_public', 0);