mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Lazy load users
This commit is contained in:
@@ -18,8 +18,8 @@ class API_OAuth2_AuthCodeTest extends PhraseanetPHPUnitAbstract
|
||||
{
|
||||
parent::setUp();
|
||||
$appbox = self::$application['phraseanet.appbox'];
|
||||
$this->application = API_OAuth2_Application::create(self::$application, self::$user, 'test app');
|
||||
$this->account = API_OAuth2_Account::load_with_user(self::$application, $this->application, self::$user);
|
||||
$this->application = API_OAuth2_Application::create(self::$application, self::$DI['user'], 'test app');
|
||||
$this->account = API_OAuth2_Account::load_with_user(self::$application, $this->application, self::$DI['user']);
|
||||
|
||||
$expires = time() + 100;
|
||||
$this->code = random::generatePassword(8);
|
||||
|
Reference in New Issue
Block a user