Все контроллеры переведены на использование jwt токенов

This commit is contained in:
ErickSkrauch
2016-02-24 01:15:04 +03:00
parent 601f0a290b
commit 8583edbb92
5 changed files with 26 additions and 3 deletions

View File

@@ -11,6 +11,9 @@ class AccountSteps extends FunctionalTester {
$route = new LoginRoute($I);
$route->login('Admin', 'password_0');
$I->canSeeResponseIsJson();
$I->canSeeResponseJsonMatchesJsonPath('$.jwt');
$jwt = $I->grabDataFromResponseByJsonPath('$.jwt')[0];
$I->amBearerAuthenticated($jwt);
}
}