diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-24 10:39:24 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-24 10:39:24 +0200 |
commit | 8bb1f3d69ac9a1d0adbbfa0cc689043ae1610fd1 (patch) | |
tree | 186571127dc8e98e941056e2f59915598f3fe690 /src/Wallabag/CoreBundle/Tests/Controller | |
parent | bccb5bba75e3f2bf8e89fef6b939500757c3d2b1 (diff) | |
parent | f90af145caa040d17f2fb01e78b645c4157c3781 (diff) | |
download | wallabag-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')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 9 |
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 | ); |