route = new TwoFactorAuthRoute($I); } public function testGetCredentials(FunctionalTester $I) { $I->loggedInAsActiveAccount(); $this->route->credentials(); $I->canSeeResponseCodeIs(200); $I->canSeeResponseIsJson(); $I->canSeeResponseJsonMatchesJsonPath('$.secret'); $I->canSeeResponseJsonMatchesJsonPath('$.uri'); $I->canSeeResponseJsonMatchesJsonPath('$.qr'); } }