mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Implemented account deletion. Not all cases covered with tests [skip ci]
This commit is contained in:
@ -97,6 +97,20 @@ class AuthorizationCest {
|
||||
]);
|
||||
}
|
||||
|
||||
public function deletedAccount(FunctionalTester $I) {
|
||||
$I->wantTo('authenticate in account marked for deletion');
|
||||
$I->sendPOST('/api/authserver/authentication/authenticate', [
|
||||
'username' => 'DeletedAccount',
|
||||
'password' => 'password_0',
|
||||
'clientToken' => Uuid::uuid4()->toString(),
|
||||
]);
|
||||
$I->canSeeResponseCodeIs(401);
|
||||
$I->canSeeResponseContainsJson([
|
||||
'error' => 'ForbiddenOperationException',
|
||||
'errorMessage' => 'Invalid credentials. Invalid nickname or password.',
|
||||
]);
|
||||
}
|
||||
|
||||
public function bannedAccount(FunctionalTester $I) {
|
||||
$I->wantTo('authenticate in suspended account');
|
||||
$I->sendPOST('/api/authserver/authentication/authenticate', [
|
||||
|
Reference in New Issue
Block a user