route = new AccountsRoute($I); } public function testCurrent(FunctionalTester $I) { $I->loggedInAsActiveAccount(); $this->route->current(); $I->canSeeResponseCodeIs(200); $I->canSeeResponseIsJson(); $I->canSeeResponseContainsJson([ 'id' => 1, 'username' => 'Admin', 'email' => 'admin@ely.by', 'lang' => 'en', 'shouldChangePassword' => false, 'isActive' => true, 'hasMojangUsernameCollision' => false, ]); $I->canSeeResponseJsonMatchesJsonPath('$.passwordChangedAt'); } }