class: WallabagUserBundle:User
property: username
fos_userbundle:
- id: fos_user.user_provider.username
+ id: fos_user.user_provider.username_email
# the main part of the security, where you can set up firewalls
# for specific sections of your app
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');
}
$client->followRedirects();
- $crawler = $client->request('GET', '/register');
+ $client->request('GET', '/register');
$this->assertContains('registration.submit', $client->getResponse()->getContent());
}
}