login('Admin', 'password_0'); $I->canSeeResponseIsJson(); $I->canSeeResponseJsonMatchesJsonPath('$.jwt'); $jwt = $I->grabDataFromResponseByJsonPath('$.jwt')[0]; $I->amBearerAuthenticated($jwt); } public function notLoggedIn() { $this->haveHttpHeader('Authorization', null); } }