route = new AccountsRoute($I); } public function testCurrent(FunctionalTester $I) { $I->loggedInAsActiveAccount('Veleyaba', 'password_0'); $this->route->acceptRules(); $I->canSeeResponseCodeIs(200); $I->canSeeResponseIsJson(); $I->canSeeResponseContainsJson([ 'success' => true, ]); } }