1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

Enabled created user from Config

By default, creating user with FOSUser are disabled by default.

Fix #1423
This commit is contained in:
Jeremy Benoist 2015-09-26 19:35:00 +02:00
parent 5716249455
commit 0f30f48b93
2 changed files with 10 additions and 0 deletions

View file

@ -337,6 +337,14 @@ class ConfigControllerTest extends WallabagCoreTestCase
$this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text')));
$this->assertContains('User "wallace" added', $alert[0]);
$em = $client->getContainer()->get('doctrine.orm.entity_manager');
$user = $em
->getRepository('WallabagCoreBundle:User')
->findOneByUsername('wallace');
$this->assertTrue(false !== $user);
$this->assertTrue($user->isEnabled());
}
public function testRssUpdateResetToken()