X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTests%2FController%2FSecurityControllerTest.php;h=759ef01b0417b2e63f88d984b95f2737e6ec749f;hb=7fc14130c706fae27c5643a016b23de2bf29910d;hp=a51e836d1586c74659a5145175f59b35dff1a38e;hpb=728a43285056c54bb1c0ec622ae9431f487d3a66;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php index a51e836d..759ef01b 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();