Cleanup namepaces, variables uses

This commit is contained in:
Romain Neutron
2012-09-28 16:06:28 +02:00
parent 372861deb4
commit 1700565862
232 changed files with 593 additions and 1446 deletions

View File

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