From c2a53e7faebd22454de0c6c75d66f736562da096 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Tue, 3 Nov 2015 11:33:04 +0100 Subject: [PATCH] Enable mail notifications on mock users --- tests/Alchemy/Tests/Phrasea/Controller/Admin/UsersTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Alchemy/Tests/Phrasea/Controller/Admin/UsersTest.php b/tests/Alchemy/Tests/Phrasea/Controller/Admin/UsersTest.php index 3e51a5ee4e..6c1b9ef71a 100644 --- a/tests/Alchemy/Tests/Phrasea/Controller/Admin/UsersTest.php +++ b/tests/Alchemy/Tests/Phrasea/Controller/Admin/UsersTest.php @@ -381,6 +381,8 @@ class UsersTest extends \PhraseanetAuthenticatedWebTestCase public function testPostRegistrations() { + self::$DI['user_alt1']->setMailNotificationsActivated(true); + $id = self::$DI['user_alt1']->getId(); $baseId = self::$DI['collection']->get_base_id(); $param = sprintf('%s_%s', $id, $baseId); @@ -422,6 +424,8 @@ class UsersTest extends \PhraseanetAuthenticatedWebTestCase self::$DI['app']['phraseanet.appbox'] = $appbox; $this->assertTrue(self::$DI['client']->getResponse()->isRedirect()); + + self::$DI['user_alt1']->setMailNotificationsActivated(false); } public function testRenderImportFile()