diff --git a/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php index a51e836d1..759ef01b0 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php @@ -40,6 +40,25 @@ class SecurityControllerTest extends WallabagCoreTestCase $this->assertContains('Bad credentials', $client->getResponse()->getContent()); } + public function testRedirectionAfterLogin() + { + $client = $this->getClient(); + $client->followRedirects(); + + $crawler = $client->request('GET', '/config'); + + $form = $crawler->filter('button[type=submit]')->form(); + + $data = array( + '_username' => 'admin', + '_password' => 'mypassword', + ); + + $client->submit($form, $data); + + $this->assertContains('RSS', $client->getResponse()->getContent()); + } + public function testForgotPassword() { $client = $this->getClient();