mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Cleanup User Component, update tests
This commit is contained in:
@@ -19,8 +19,9 @@ class FunctionalTester extends Actor {
|
||||
throw new InvalidArgumentException("Cannot find account for username \"{$asUsername}\"");
|
||||
}
|
||||
|
||||
$result = Yii::$app->user->createJwtAuthenticationToken($account, false);
|
||||
$this->amBearerAuthenticated($result->getJwt());
|
||||
$token = Yii::$app->user->createJwtAuthenticationToken($account);
|
||||
$jwt = Yii::$app->user->serializeToken($token);
|
||||
$this->amBearerAuthenticated($jwt);
|
||||
|
||||
return $account->id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user