diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-12 09:05:21 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-12 09:05:21 +0200 |
commit | 930334cd6d486843b536412391a549815efd038e (patch) | |
tree | 485eeecc3bd3db3613d47de25662d5c9163e4afe /src/Wallabag/CoreBundle/Tests | |
parent | fedaf005377e6d62ff0986f7f54afef3287a6451 (diff) | |
parent | 2686457448372543fdf4f1fc54c4fd20f0f02c2c (diff) | |
download | wallabag-930334cd6d486843b536412391a549815efd038e.tar.gz wallabag-930334cd6d486843b536412391a549815efd038e.tar.zst wallabag-930334cd6d486843b536412391a549815efd038e.zip |
Merge pull request #1297 from wallabag/v2-estimated-time
store estimated reading time in database (#393)
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index 2cd50130..24848eb2 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |||
@@ -240,4 +240,23 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
240 | 240 | ||
241 | $this->assertEquals(403, $client->getResponse()->getStatusCode()); | 241 | $this->assertEquals(403, $client->getResponse()->getStatusCode()); |
242 | } | 242 | } |
243 | |||
244 | public function testFilterOnUnreadeView() | ||
245 | { | ||
246 | $this->logInAs('admin'); | ||
247 | $client = $this->getClient(); | ||
248 | |||
249 | $crawler = $client->request('GET', '/unread/list'); | ||
250 | |||
251 | $form = $crawler->filter('button[id=submit-filter]')->form(); | ||
252 | |||
253 | $data = array( | ||
254 | 'entry_filter[readingTime][right_number]' => 11, | ||
255 | 'entry_filter[readingTime][left_number]' => 11 | ||
256 | ); | ||
257 | |||
258 | $crawler = $client->submit($form, $data); | ||
259 | |||
260 | $this->assertCount(1, $crawler->filter('div[class=entry]')); | ||
261 | } | ||
243 | } | 262 | } |