mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Refactor Appbox
This commit is contained in:
@@ -53,7 +53,7 @@ class CoreTest extends PhraseanetPHPUnitAbstract
|
||||
public function testIsAuthenticathed()
|
||||
{
|
||||
$this->assertFalse(self::$core->isAuthenticated());
|
||||
$appbox = appbox::get_instance();
|
||||
$appbox = appbox::get_instance(\bootstrap::getCore());
|
||||
$session = $appbox->get_session();
|
||||
$auth = new Session_Authentication_None(self::$user);
|
||||
$session->authenticate($auth);
|
||||
@@ -63,7 +63,7 @@ class CoreTest extends PhraseanetPHPUnitAbstract
|
||||
|
||||
public function testGetAuthenticathed()
|
||||
{
|
||||
$appbox = appbox::get_instance();
|
||||
$appbox = appbox::get_instance(\bootstrap::getCore());
|
||||
$session = $appbox->get_session();
|
||||
$auth = new Session_Authentication_None(self::$user);
|
||||
$session->authenticate($auth);
|
||||
|
Reference in New Issue
Block a user