route = new AccountsRoute($I); } public function testGetCredentials(FunctionalTester $I) { $accountId = $I->amAuthenticated(); $this->route->getTwoFactorAuthCredentials($accountId); $I->canSeeResponseCodeIs(200); $I->canSeeResponseIsJson(); $I->canSeeResponseJsonMatchesJsonPath('$.secret'); $I->canSeeResponseJsonMatchesJsonPath('$.uri'); $I->canSeeResponseJsonMatchesJsonPath('$.qr'); } }