$page =
$landingPageLoader->
load($request,
$salesChannelContext);
/** @phpstan-ignore-next-line */
$cmsPageLoaded =
$page->
getLandingPage()->
getCmsPage();
static::
assertEquals($cmsPage,
$cmsPageLoaded);
} private function getLandingPageLoaderWithProduct(string
$landingPageId, CmsPageEntity
$cmsPage, Request
$request, SalesChannelContext
$salesChannelContext): LandingPageLoader
{ $landingPage =
new LandingPageEntity();
$landingPage->
setId($landingPageId);
$landingPage->
setCmsPage($cmsPage);
$landingPageRouteMock =
$this->
createMock(LandingPageRoute::
class);
$landingPageRouteMock ->
method('load'
) ->
with($landingPageId,
$request,
$salesChannelContext) ->
willReturn(new LandingPageRouteResponse($landingPage));
return new LandingPageLoader( $this->
createMock(GenericPageLoader::
class),