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