Enable mail notifications on mock users

This commit is contained in:
Thibaud Fabre
2015-11-03 11:33:04 +01:00
parent 938c92b0c1
commit c2a53e7fae

View File

@@ -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()