diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php index 116eec60..3407fc5e 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php | |||
@@ -337,6 +337,14 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
337 | 337 | ||
338 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); | 338 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); |
339 | $this->assertContains('User "wallace" added', $alert[0]); | 339 | $this->assertContains('User "wallace" added', $alert[0]); |
340 | |||
341 | $em = $client->getContainer()->get('doctrine.orm.entity_manager'); | ||
342 | $user = $em | ||
343 | ->getRepository('WallabagCoreBundle:User') | ||
344 | ->findOneByUsername('wallace'); | ||
345 | |||
346 | $this->assertTrue(false !== $user); | ||
347 | $this->assertTrue($user->isEnabled()); | ||
340 | } | 348 | } |
341 | 349 | ||
342 | public function testRssUpdateResetToken() | 350 | public function testRssUpdateResetToken() |