mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Refactor Appbox
This commit is contained in:
@@ -17,7 +17,7 @@ class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$appbox = appbox::get_instance();
|
||||
$appbox = appbox::get_instance(\bootstrap::getCore());
|
||||
$this->application = API_OAuth2_Application::create($appbox, self::$user, 'test app');
|
||||
$account = API_OAuth2_Account::load_with_user($appbox, $this->application, self::$user);
|
||||
|
||||
@@ -110,7 +110,7 @@ class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
|
||||
public function testLoad_by_oauth_token()
|
||||
{
|
||||
$token = $this->object->get_value();
|
||||
$loaded = API_OAuth2_Token::load_by_oauth_token(appbox::get_instance(), $token);
|
||||
$loaded = API_OAuth2_Token::load_by_oauth_token(appbox::get_instance(\bootstrap::getCore()), $token);
|
||||
$this->assertInstanceOf('API_OAuth2_Token', $loaded);
|
||||
$this->assertEquals($this->object, $loaded);
|
||||
}
|
||||
|
Reference in New Issue
Block a user