aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2020-04-20 19:21:35 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2020-04-20 19:21:35 +0200
commitefea7a352f947a3632095d95a7dfbb07b8fd86c7 (patch)
tree9d0d0450dcae12288e58ba8937e287e9e4b86a33
parent4b997bc8b27fc25efd1f7a0797b78ee666ef9688 (diff)
downloadwallabag-efea7a352f947a3632095d95a7dfbb07b8fd86c7.tar.gz
wallabag-efea7a352f947a3632095d95a7dfbb07b8fd86c7.tar.zst
wallabag-efea7a352f947a3632095d95a7dfbb07b8fd86c7.zip
Added tests
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index 8960dd25..65c65ff1 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -399,6 +399,16 @@ class EntryControllerTest extends WallabagCoreTestCase
399 $this->assertSame(200, $client->getResponse()->getStatusCode()); 399 $this->assertSame(200, $client->getResponse()->getStatusCode());
400 } 400 }
401 401
402 public function testWithAnnotations()
403 {
404 $this->logInAs('admin');
405 $client = $this->getClient();
406
407 $client->request('GET', '/with_annotations/list');
408
409 $this->assertSame(200, $client->getResponse()->getStatusCode());
410 }
411
402 public function testRangeException() 412 public function testRangeException()
403 { 413 {
404 $this->logInAs('admin'); 414 $this->logInAs('admin');
@@ -1553,6 +1563,10 @@ class EntryControllerTest extends WallabagCoreTestCase
1553 $this->assertSame(302, $client->getResponse()->getStatusCode()); 1563 $this->assertSame(302, $client->getResponse()->getStatusCode());
1554 $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'Untagged random'); 1564 $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'Untagged random');
1555 1565
1566 $client->request('GET', '/with_annotations/random');
1567 $this->assertSame(302, $client->getResponse()->getStatusCode());
1568 $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'With annotations random');
1569
1556 $client->request('GET', '/all/random'); 1570 $client->request('GET', '/all/random');
1557 $this->assertSame(302, $client->getResponse()->getStatusCode()); 1571 $this->assertSame(302, $client->getResponse()->getStatusCode());
1558 $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'All random'); 1572 $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'All random');