mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Enable mail notifications on mock users
This commit is contained in:
@@ -381,6 +381,8 @@ class UsersTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
|
|
||||||
public function testPostRegistrations()
|
public function testPostRegistrations()
|
||||||
{
|
{
|
||||||
|
self::$DI['user_alt1']->setMailNotificationsActivated(true);
|
||||||
|
|
||||||
$id = self::$DI['user_alt1']->getId();
|
$id = self::$DI['user_alt1']->getId();
|
||||||
$baseId = self::$DI['collection']->get_base_id();
|
$baseId = self::$DI['collection']->get_base_id();
|
||||||
$param = sprintf('%s_%s', $id, $baseId);
|
$param = sprintf('%s_%s', $id, $baseId);
|
||||||
@@ -422,6 +424,8 @@ class UsersTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
|
|
||||||
self::$DI['app']['phraseanet.appbox'] = $appbox;
|
self::$DI['app']['phraseanet.appbox'] = $appbox;
|
||||||
$this->assertTrue(self::$DI['client']->getResponse()->isRedirect());
|
$this->assertTrue(self::$DI['client']->getResponse()->isRedirect());
|
||||||
|
|
||||||
|
self::$DI['user_alt1']->setMailNotificationsActivated(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRenderImportFile()
|
public function testRenderImportFile()
|
||||||
|
Reference in New Issue
Block a user