aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index 698e5e13..19c8698e 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -627,6 +627,26 @@ class EntryControllerTest extends WallabagCoreTestCase
627 $this->assertCount(1, $crawler->filter('div[class=entry]')); 627 $this->assertCount(1, $crawler->filter('div[class=entry]'));
628 } 628 }
629 629
630 public function testFilterOnReadingTimeWithNegativeValue()
631 {
632 $this->logInAs('admin');
633 $client = $this->getClient();
634
635 $crawler = $client->request('GET', '/unread/list');
636
637 $form = $crawler->filter('button[id=submit-filter]')->form();
638
639 $data = [
640 'entry_filter[readingTime][right_number]' => -22,
641 'entry_filter[readingTime][left_number]' => -22,
642 ];
643
644 $crawler = $client->submit($form, $data);
645
646 // forcing negative value results in no entry displayed
647 $this->assertCount(0, $crawler->filter('div[class=entry]'));
648 }
649
630 public function testFilterOnReadingTimeOnlyUpper() 650 public function testFilterOnReadingTimeOnlyUpper()
631 { 651 {
632 $this->logInAs('admin'); 652 $this->logInAs('admin');