#[Package('buyers-experience')]
class LandingPageLoaderTest extends TestCase
{ public function testNoLandingPageIdException(): void
{ $landingPageRouteMock =
$this->
createMock(LandingPageRoute::
class);
$landingPageRouteMock->
expects(static::
never())->
method('load'
);
$landingPageLoader =
new LandingPageLoader( $this->
createMock(GenericPageLoader::
class),
$landingPageRouteMock,
$this->
createMock(EventDispatcherInterface::
class) );
$request =
new Request([],
[],
[]);
$salesChannelContext =
$this->
getSalesChannelContext();
static::
expectExceptionObject(RoutingException::
missingRequestParameter('landingPageId', '/landingPageId'
));
$landingPageLoader->
load($request,
$salesChannelContext);
}