aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php6
-rw-r--r--tests/Wallabag/UserBundle/Controller/ManageControllerTest.php2
2 files changed, 6 insertions, 2 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);
diff --git a/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php b/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php
index 19b824b8..243a4459 100644
--- a/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php
+++ b/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php
@@ -23,7 +23,7 @@ class ManageControllerTest extends WallabagCoreTestCase
23 23
24 // Create a new user in the database 24 // Create a new user in the database
25 $crawler = $client->request('GET', '/users/'); 25 $crawler = $client->request('GET', '/users/');
26 $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /users/"); 26 $this->assertEquals(200, $client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /users/');
27 $crawler = $client->click($crawler->selectLink('user.list.create_new_one')->link()); 27 $crawler = $client->click($crawler->selectLink('user.list.create_new_one')->link());
28 28
29 // Fill in the form and submit it 29 // Fill in the form and submit it