$this->
getContainer()->
get(LogoutRoute::
class),
$this->
getContainer()->
get(StorefrontCartFacade::
class),
$this->
getContainer()->
get(AccountRecoverPasswordPageLoader::
class),
$this->
getContainer()->
get(SalesChannelContextService::
class) );
$controller->
setContainer($this->
getContainer());
$request =
$this->
createRequest('frontend.account.recover.request'
);
$this->
getContainer()->
get('request_stack'
)->
push($request);
$controller->
generateAccountRecovery($request,
new RequestDataBag([ 'email' =>
[ 'email' => 'test@example.com',
],
]),
$this->salesChannelContext
);
$session =
$this->
getSession();
static::
assertInstanceOf(Session::
class,
$session);
$flashBag =
$session->
getFlashBag();
static::
assertNotEmpty($flash =
$flashBag->
get('info'
));
static::
assertEquals($this->translator->
trans('error.rateLimitExceeded',
['%seconds%' => 10
]),
$flash[0
]);
}