Генерируемые AccessTokens заменены на UUID значения

This commit is contained in:
ErickSkrauch
2016-06-18 16:38:15 +03:00
parent 7ea7c5245f
commit eb1a3703cf
3 changed files with 27 additions and 5 deletions

View File

@ -17,7 +17,7 @@ class OauthSteps extends \tests\codeception\api\FunctionalTester {
], ['accept' => true]);
$this->canSeeResponseJsonMatchesJsonPath('$.redirectUri');
$response = json_decode($this->grabResponse(), true);
preg_match('/code=(\w+)/', $response['redirectUri'], $matches);
preg_match('/code=([\w-]+)/', $response['redirectUri'], $matches);
return $matches[1];
}