route = new AccountsRoute($I); } public function testSubmitNewEmail(FunctionalTester $I) { $I->wantTo('submit new email'); $I->loggedInAsActiveAccount('ILLIMUNATI', 'password_0'); $this->route->changeEmailSubmitNewEmail('H27HBDCHHAG2HGHGHS', 'my-new-email@ely.by'); $I->canSeeResponseCodeIs(200); $I->canSeeResponseIsJson(); $I->canSeeResponseContainsJson([ 'success' => true, ]); } }