diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-12-29 10:54:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 10:54:07 +0100 |
commit | 8527238846b0ea307ba68ca8a831eb0884c68d4a (patch) | |
tree | f93d54cd9fcbb85fa43c989ef670612f9a4d47e5 /tests/Wallabag | |
parent | 90f6ee4dbe761f97edf0bf87ffeb1f75acec6c25 (diff) | |
parent | 7239082a5e290dada1d393f7a25acebb09ace2de (diff) | |
download | wallabag-8527238846b0ea307ba68ca8a831eb0884c68d4a.tar.gz wallabag-8527238846b0ea307ba68ca8a831eb0884c68d4a.tar.zst wallabag-8527238846b0ea307ba68ca8a831eb0884c68d4a.zip |
Merge pull request #2702 from wallabag/add-index-uuid
Added index on entry.uuid
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index c347cca5..06ed2db6 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |||
@@ -810,15 +810,15 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
810 | ->getRepository('WallabagCoreBundle:Entry') | 810 | ->getRepository('WallabagCoreBundle:Entry') |
811 | ->findOneByUser($this->getLoggedInUserId()); | 811 | ->findOneByUser($this->getLoggedInUserId()); |
812 | 812 | ||
813 | // no uuid | 813 | // no uid |
814 | $client->request('GET', '/share/'.$content->getUuid()); | 814 | $client->request('GET', '/share/'.$content->getUid()); |
815 | $this->assertEquals(404, $client->getResponse()->getStatusCode()); | 815 | $this->assertEquals(404, $client->getResponse()->getStatusCode()); |
816 | 816 | ||
817 | // generating the uuid | 817 | // generating the uid |
818 | $client->request('GET', '/share/'.$content->getId()); | 818 | $client->request('GET', '/share/'.$content->getId()); |
819 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); | 819 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); |
820 | 820 | ||
821 | // follow link with uuid | 821 | // follow link with uid |
822 | $crawler = $client->followRedirect(); | 822 | $crawler = $client->followRedirect(); |
823 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 823 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); |
824 | $this->assertContains('max-age=25200', $client->getResponse()->headers->get('cache-control')); | 824 | $this->assertContains('max-age=25200', $client->getResponse()->headers->get('cache-control')); |
@@ -832,7 +832,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
832 | 832 | ||
833 | // sharing is now disabled | 833 | // sharing is now disabled |
834 | $client->getContainer()->get('craue_config')->set('share_public', 0); | 834 | $client->getContainer()->get('craue_config')->set('share_public', 0); |
835 | $client->request('GET', '/share/'.$content->getUuid()); | 835 | $client->request('GET', '/share/'.$content->getUid()); |
836 | $this->assertEquals(404, $client->getResponse()->getStatusCode()); | 836 | $this->assertEquals(404, $client->getResponse()->getStatusCode()); |
837 | 837 | ||
838 | $client->request('GET', '/view/'.$content->getId()); | 838 | $client->request('GET', '/view/'.$content->getId()); |
@@ -843,7 +843,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
843 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); | 843 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); |
844 | 844 | ||
845 | // share is now disable | 845 | // share is now disable |
846 | $client->request('GET', '/share/'.$content->getUuid()); | 846 | $client->request('GET', '/share/'.$content->getUid()); |
847 | $this->assertEquals(404, $client->getResponse()->getStatusCode()); | 847 | $this->assertEquals(404, $client->getResponse()->getStatusCode()); |
848 | } | 848 | } |
849 | 849 | ||