diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-21 15:12:11 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-22 21:25:05 +0100 |
commit | 5066c3e066ad67788bdf6edac9e80cab614a2d4d (patch) | |
tree | a3e7394f4ff77bc628625dda887286afb9dcf0df /tests | |
parent | 4da598c5df08f8a5e20c838df5de8c9e4efcb273 (diff) | |
download | wallabag-5066c3e066ad67788bdf6edac9e80cab614a2d4d.tar.gz wallabag-5066c3e066ad67788bdf6edac9e80cab614a2d4d.tar.zst wallabag-5066c3e066ad67788bdf6edac9e80cab614a2d4d.zip |
Re-use FOSUser master branch
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php index 9bbc5960..a28c3b6b 100644 --- a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php | |||
@@ -592,13 +592,13 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
592 | $user = $em | 592 | $user = $em |
593 | ->getRepository('WallabagUserBundle:User') | 593 | ->getRepository('WallabagUserBundle:User') |
594 | ->findOneByUsername('empty'); | 594 | ->findOneByUsername('empty'); |
595 | $user->setExpired(1); | 595 | $user->setEnabled(false); |
596 | $em->persist($user); | 596 | $em->persist($user); |
597 | 597 | ||
598 | $user = $em | 598 | $user = $em |
599 | ->getRepository('WallabagUserBundle:User') | 599 | ->getRepository('WallabagUserBundle:User') |
600 | ->findOneByUsername('bob'); | 600 | ->findOneByUsername('bob'); |
601 | $user->setExpired(1); | 601 | $user->setEnabled(false); |
602 | $em->persist($user); | 602 | $em->persist($user); |
603 | 603 | ||
604 | $em->flush(); | 604 | $em->flush(); |
@@ -614,13 +614,13 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
614 | $user = $em | 614 | $user = $em |
615 | ->getRepository('WallabagUserBundle:User') | 615 | ->getRepository('WallabagUserBundle:User') |
616 | ->findOneByUsername('empty'); | 616 | ->findOneByUsername('empty'); |
617 | $user->setExpired(0); | 617 | $user->setEnabled(true); |
618 | $em->persist($user); | 618 | $em->persist($user); |
619 | 619 | ||
620 | $user = $em | 620 | $user = $em |
621 | ->getRepository('WallabagUserBundle:User') | 621 | ->getRepository('WallabagUserBundle:User') |
622 | ->findOneByUsername('bob'); | 622 | ->findOneByUsername('bob'); |
623 | $user->setExpired(0); | 623 | $user->setEnabled(true); |
624 | $em->persist($user); | 624 | $em->persist($user); |
625 | 625 | ||
626 | $em->flush(); | 626 | $em->flush(); |