Refactor Appbox

This commit is contained in:
Romain Neutron
2012-02-21 16:25:07 +01:00
parent 48cf1af785
commit 0a85cf2c32
6 changed files with 17 additions and 17 deletions

View File

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