public function testItLoads(): void
{ $productId = Uuid::
randomHex();
$landingPageId = Uuid::
randomHex();
$request =
new Request([],
[],
['landingPageId' =>
$landingPageId]);
$salesChannelContext =
$this->
getSalesChannelContext();
$product =
$this->
getProduct($productId);
$cmsPage =
$this->
getCmsPage($product);
$landingPageLoader =
$this->
getLandingPageLoaderWithProduct($landingPageId,
$cmsPage,
$request,
$salesChannelContext);
$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
{