/** @phpstan-ignore-next-line $slot */
$slot =
$page->
getCmsPage()->
getSections()->
first()->
getBlocks()->
first()->
getSlots()->
first()->
getSlot();
static::
assertEquals($reviews,
json_decode((string) $slot, true, 512, \JSON_THROW_ON_ERROR
));
} /**
* @param array<string, array<string, array<string, array<string, array<string, string>>>>> $reviews
*/
private function getProductPageLoaderWithProduct(string
$productId, array
$reviews, Request
$request, SalesChannelContext
$salesChannelContext): ProductPageLoader
{ $product =
$this->
getProductWithReviews($productId,
$reviews);
// set cms page which later will be set by the subscriber
$product->
setCmsPage($this->
getCmsPage($product));
$criteria =
(new Criteria()) ->
addAssociation('manufacturer.media'
) ->
addAssociation('options.group'
) ->
addAssociation('properties.group'
) ->
addAssociation('mainCategories.category'
) ->
addAssociation('media'
);