diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-19 16:21:31 +0100 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-19 16:21:31 +0100 |
commit | a8c6b8ee0cb4e77731df502a05479a8501806309 (patch) | |
tree | ef8aa9b96b9d9fa73c4340948d583c201494c0cb /src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |
parent | fa64d861105bd0713acd7ac5d116353273524b4f (diff) | |
parent | 671a2b887f3215366e8acc05fcfa4e57264d3e69 (diff) | |
download | wallabag-a8c6b8ee0cb4e77731df502a05479a8501806309.tar.gz wallabag-a8c6b8ee0cb4e77731df502a05479a8501806309.tar.zst wallabag-a8c6b8ee0cb4e77731df502a05479a8501806309.zip |
Merge pull request #1700 from delyriand/v2-fix-1551
Fix #1551 - Redirect to the last page when current page is out of range
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index 32d6a575..5512d6e1 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |||
@@ -216,6 +216,17 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
216 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | 216 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); |
217 | } | 217 | } |
218 | 218 | ||
219 | public function testRangeException() | ||
220 | { | ||
221 | $this->logInAs('admin'); | ||
222 | $client = $this->getClient(); | ||
223 | |||
224 | $client->request('GET', '/all/list/900'); | ||
225 | |||
226 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); | ||
227 | $this->assertEquals('/all/list', $client->getResponse()->getTargetUrl()); | ||
228 | } | ||
229 | |||
219 | /** | 230 | /** |
220 | * @depends testPostNewOk | 231 | * @depends testPostNewOk |
221 | */ | 232 | */ |