mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
Merge branch '3.8'
Conflicts: tests/Alchemy/Tests/Phrasea/Application/OverviewTest.php
This commit is contained in:
@@ -1113,6 +1113,14 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
{
|
||||
$app['session']->clear();
|
||||
$app['session']->set('usr_id', self::$DI['user']->get_id());
|
||||
$session = new \Entities\Session();
|
||||
$session->setUsrId(self::$DI['user']->get_id());
|
||||
$session->setUserAgent('');
|
||||
self::$DI['app']['EM']->persist($session);
|
||||
self::$DI['app']['EM']->flush();
|
||||
|
||||
$app['session']->set('session_id', $session->getId());
|
||||
|
||||
self::$DI['app']['authentication']->reinitUser();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user