mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Cleanup namepaces, variables uses
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
use Alchemy\Phrasea\Core\Configuration;
|
||||
|
||||
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||
|
||||
class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
|
||||
@@ -15,18 +13,17 @@ class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$appbox = self::$DI['app']['phraseanet.appbox'];
|
||||
$this->application = API_OAuth2_Application::create(self::$DI['app'], self::$DI['user'], 'test app');
|
||||
$account = API_OAuth2_Account::load_with_user(self::$DI['app'], $this->application, self::$DI['user']);
|
||||
|
||||
try {
|
||||
new API_OAuth2_Token($appbox, $account);
|
||||
new API_OAuth2_Token(self::$DI['app']['phraseanet.appbox'], $account);
|
||||
$this->fail();
|
||||
} catch (Exception $e) {
|
||||
|
||||
}
|
||||
|
||||
$this->object = API_OAuth2_Token::create($appbox, $account);
|
||||
$this->object = API_OAuth2_Token::create(self::$DI['app']['phraseanet.appbox'], $account);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
|
Reference in New Issue
Block a user