public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::$application = \Stormpath\Resource\Application::instantiate(array('name' => 'Main App for the tests' . md5(time()), 'description' => 'Description of Main App', 'status' => 'enabled')); parent::createResource(\Stormpath\Resource\Application::PATH, self::$application, array('createDirectory' => true)); self::$account = \Stormpath\Resource\Account::instantiate(array('givenName' => 'PHP', 'middleName' => 'BasicRequestAuthenticator', 'surname' => 'Test', 'username' => md5(time() . microtime() . uniqid()) . 'username', 'email' => md5(time() . microtime() . uniqid()) . '@unknown123.kot', 'password' => 'superP4ss')); self::$application->createAccount(self::$account); self::$apiKey = self::$account->createApiKey(); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::$application = \Stormpath\Resource\Application::instantiate(array('name' => makeUniqueName('Application BasicRequestAuthenticatorTest'), 'description' => 'Application for BasicRequestAuthenticatorTest', 'status' => 'enabled')); parent::createResource(\Stormpath\Resource\Application::PATH, self::$application, array('createDirectory' => true)); self::$account = \Stormpath\Resource\Account::instantiate(array('givenName' => 'PHP', 'middleName' => 'BasicRequestAuthenticatorTest', 'surname' => 'Test', 'username' => makeUniqueName('BasicRequestAuthenticatorTest'), 'email' => makeUniqueName('BasicRequestAuthenticatorTest') . '@unknown123.kot', 'password' => 'superP4ss')); self::$application->createAccount(self::$account); self::$apiKey = self::$account->createApiKey(); }