diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-26 14:09:16 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-26 14:09:16 +0200 |
commit | fd30989a186db2a68afa1bd24b3cf39b8ce94ef3 (patch) | |
tree | ed662cd28d46fa213da35928a35f7e0cac41d3d9 /tests/Wallabag/CoreBundle/Controller | |
parent | efea7a352f947a3632095d95a7dfbb07b8fd86c7 (diff) | |
download | wallabag-fd30989a186db2a68afa1bd24b3cf39b8ce94ef3.tar.gz wallabag-fd30989a186db2a68afa1bd24b3cf39b8ce94ef3.tar.zst wallabag-fd30989a186db2a68afa1bd24b3cf39b8ce94ef3.zip |
Enhanced tests and changed routewith-annotations-route
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 65c65ff1..07e075d4 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |||
@@ -404,9 +404,9 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
404 | $this->logInAs('admin'); | 404 | $this->logInAs('admin'); |
405 | $client = $this->getClient(); | 405 | $client = $this->getClient(); |
406 | 406 | ||
407 | $client->request('GET', '/with_annotations/list'); | 407 | $crawler = $client->request('GET', '/annotated/list'); |
408 | |||
409 | $this->assertSame(200, $client->getResponse()->getStatusCode()); | 408 | $this->assertSame(200, $client->getResponse()->getStatusCode()); |
409 | $this->assertCount(2, $crawler->filter('li.entry')); | ||
410 | } | 410 | } |
411 | 411 | ||
412 | public function testRangeException() | 412 | public function testRangeException() |
@@ -1563,7 +1563,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
1563 | $this->assertSame(302, $client->getResponse()->getStatusCode()); | 1563 | $this->assertSame(302, $client->getResponse()->getStatusCode()); |
1564 | $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'Untagged random'); | 1564 | $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'Untagged random'); |
1565 | 1565 | ||
1566 | $client->request('GET', '/with_annotations/random'); | 1566 | $client->request('GET', '/annotated/random'); |
1567 | $this->assertSame(302, $client->getResponse()->getStatusCode()); | 1567 | $this->assertSame(302, $client->getResponse()->getStatusCode()); |
1568 | $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'With annotations random'); | 1568 | $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'With annotations random'); |
1569 | 1569 | ||