Remove expires_in field when the access_token isn't expiring

This commit is contained in:
ErickSkrauch
2019-12-13 16:00:51 +03:00
parent 22d8971dc5
commit 40eca5b8b6
3 changed files with 11 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ class AccessTokenCest {
'token_type' => 'Bearer',
]);
$I->canSeeResponseJsonMatchesJsonPath('$.access_token');
$I->canSeeResponseJsonMatchesJsonPath('$.expires_in');
$I->cantSeeResponseJsonMatchesJsonPath('$.expires_in');
$I->cantSeeResponseJsonMatchesJsonPath('$.refresh_token');
}

View File

@@ -79,7 +79,7 @@ class ClientCredentialsCest {
'token_type' => 'Bearer',
]);
$I->canSeeResponseJsonMatchesJsonPath('$.access_token');
$I->canSeeResponseJsonMatchesJsonPath('$.expires_in');
$I->cantSeeResponseJsonMatchesJsonPath('$.expires_in');
$I->cantSeeResponseJsonMatchesJsonPath('$.refresh_token');
}