public function testAccountRegister(): void
{ $context = Generator::
createSalesChannelContext();
$context->
assign(['customer' => null
]);
$request =
new Request();
$request->attributes->
set('_route', 'frontend.account.login.page'
);
$dataBag =
new RequestDataBag();
$page =
new AccountLoginPage();
$this->accountLoginPageLoader->
expects(static::
once()) ->
method('load'
) ->
with($request,
$context) ->
willReturn($page);
$this->controller->
loginPage($request,
$dataBag,
$context);
static::
assertSame($page,
$this->controller->renderStorefrontParameters
['page'
]);
static::
assertSame($dataBag,
$this->controller->renderStorefrontParameters
['data'
]);
static::
assertSame('frontend.account.home.page',
$this->controller->renderStorefrontParameters
['redirectTo'
] ?? ''
);
static::
assertSame('[]',
$this->controller->renderStorefrontParameters
['redirectParameters'
] ?? ''
);
static::
assertSame('frontend.account.login.page',
$this->controller->renderStorefrontParameters
['errorRoute'
] ?? ''
);
static::
assertInstanceOf(AccountLoginPageLoadedHook::
class,
$this->controller->calledHook
);
}