mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Allow login by email
This commit is contained in:
parent
3b46d0f947
commit
08d6bedcaa
2 changed files with 12 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue