X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FWallabag%2FCoreBundle%2FController%2FSecurityControllerTest.php;h=395208a2fe263b3cfe977e03ad5271250f8ce016;hb=08d6bedcaaaeb29ddb416708aff75c54b40baa05;hp=2cf596d46734eb43b8ecd327a61611ceff039a50;hpb=3b46d0f947958e05c55bb10a817e94a860cda6ef;p=github%2Fwallabag%2Fwallabag.git diff --git a/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php b/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php index 2cf596d4..395208a2 100644 --- a/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/SecurityControllerTest.php @@ -6,6 +6,16 @@ use Tests\Wallabag\CoreBundle\WallabagCoreTestCase; class SecurityControllerTest extends WallabagCoreTestCase { + public function testLoginWithEmail() + { + $this->logInAsUsingHttp('bigboss@wallabag.org'); + $client = $this->getClient(); + $client->followRedirects(); + + $crawler = $client->request('GET', '/config'); + $this->assertContains('config.form_rss.description', $crawler->filter('body')->extract(['_text'])[0]); + } + public function testLoginWithout2Factor() { $this->logInAs('admin'); @@ -81,7 +91,7 @@ class SecurityControllerTest extends WallabagCoreTestCase } $client->followRedirects(); - $crawler = $client->request('GET', '/register'); + $client->request('GET', '/register'); $this->assertContains('registration.submit', $client->getResponse()->getContent()); } }