diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index 8d013ec0..86a19f61 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |||
@@ -252,7 +252,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
252 | 252 | ||
253 | $data = array( | 253 | $data = array( |
254 | 'entry_filter[readingTime][right_number]' => 11, | 254 | 'entry_filter[readingTime][right_number]' => 11, |
255 | 'entry_filter[readingTime][left_number]' => 11 | 255 | 'entry_filter[readingTime][left_number]' => 11, |
256 | ); | 256 | ); |
257 | 257 | ||
258 | $crawler = $client->submit($form, $data); | 258 | $crawler = $client->submit($form, $data); |
@@ -271,7 +271,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
271 | 271 | ||
272 | $data = array( | 272 | $data = array( |
273 | 'entry_filter[createdAt][left_date]' => date('d/m/Y'), | 273 | 'entry_filter[createdAt][left_date]' => date('d/m/Y'), |
274 | 'entry_filter[createdAt][right_date]' => date('d/m/Y', strtotime("+1 day")) | 274 | 'entry_filter[createdAt][right_date]' => date('d/m/Y', strtotime('+1 day')), |
275 | ); | 275 | ); |
276 | 276 | ||
277 | $crawler = $client->submit($form, $data); | 277 | $crawler = $client->submit($form, $data); |
@@ -280,13 +280,12 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
280 | 280 | ||
281 | $data = array( | 281 | $data = array( |
282 | 'entry_filter[createdAt][left_date]' => '01/01/1970', | 282 | 'entry_filter[createdAt][left_date]' => '01/01/1970', |
283 | 'entry_filter[createdAt][right_date]' => '01/01/1970' | 283 | 'entry_filter[createdAt][right_date]' => '01/01/1970', |
284 | ); | 284 | ); |
285 | 285 | ||
286 | $crawler = $client->submit($form, $data); | 286 | $crawler = $client->submit($form, $data); |
287 | 287 | ||
288 | $this->assertCount(0, $crawler->filter('div[class=entry]')); | 288 | $this->assertCount(0, $crawler->filter('div[class=entry]')); |
289 | |||
290 | } | 289 | } |
291 | 290 | ||
292 | public function testPaginationWithFilter() | 291 | public function testPaginationWithFilter() |
@@ -318,7 +317,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
318 | $crawler = $client->request('GET', '/unread/list'); | 317 | $crawler = $client->request('GET', '/unread/list'); |
319 | $form = $crawler->filter('button[id=submit-filter]')->form(); | 318 | $form = $crawler->filter('button[id=submit-filter]')->form(); |
320 | $data = array( | 319 | $data = array( |
321 | 'entry_filter[domainName]' => 'monde' | 320 | 'entry_filter[domainName]' => 'monde', |
322 | ); | 321 | ); |
323 | 322 | ||
324 | $crawler = $client->submit($form, $data); | 323 | $crawler = $client->submit($form, $data); |
@@ -326,7 +325,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
326 | 325 | ||
327 | $form = $crawler->filter('button[id=submit-filter]')->form(); | 326 | $form = $crawler->filter('button[id=submit-filter]')->form(); |
328 | $data = array( | 327 | $data = array( |
329 | 'entry_filter[domainName]' => 'wallabag' | 328 | 'entry_filter[domainName]' => 'wallabag', |
330 | ); | 329 | ); |
331 | 330 | ||
332 | $crawler = $client->submit($form, $data); | 331 | $crawler = $client->submit($form, $data); |