aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-24 10:39:24 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-24 10:39:24 +0200
commit8bb1f3d69ac9a1d0adbbfa0cc689043ae1610fd1 (patch)
tree186571127dc8e98e941056e2f59915598f3fe690 /src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
parentbccb5bba75e3f2bf8e89fef6b939500757c3d2b1 (diff)
parentf90af145caa040d17f2fb01e78b645c4157c3781 (diff)
downloadwallabag-8bb1f3d69ac9a1d0adbbfa0cc689043ae1610fd1.tar.gz
wallabag-8bb1f3d69ac9a1d0adbbfa0cc689043ae1610fd1.tar.zst
wallabag-8bb1f3d69ac9a1d0adbbfa0cc689043ae1610fd1.zip
Merge pull request #1393 from wallabag/fix-filter-same-day
Fix date filter on same day
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
index 5f0a6076..a0966285 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
@@ -279,6 +279,15 @@ class EntryControllerTest extends WallabagCoreTestCase
279 $this->assertCount(5, $crawler->filter('div[class=entry]')); 279 $this->assertCount(5, $crawler->filter('div[class=entry]'));
280 280
281 $data = array( 281 $data = array(
282 'entry_filter[createdAt][left_date]' => date('d/m/Y'),
283 'entry_filter[createdAt][right_date]' => date('d/m/Y'),
284 );
285
286 $crawler = $client->submit($form, $data);
287
288 $this->assertCount(5, $crawler->filter('div[class=entry]'));
289
290 $data = array(
282 'entry_filter[createdAt][left_date]' => '01/01/1970', 291 'entry_filter[createdAt][left_date]' => '01/01/1970',
283 'entry_filter[createdAt][right_date]' => '01/01/1970', 292 'entry_filter[createdAt][right_date]' => '01/01/1970',
284 ); 293 );