class MinimalQuickViewPageTest extends TestCase
{ use IntegrationTestBehaviour;
use StorefrontPageTestBehaviour;
public function testItRequiresProductParam(): void
{ $request =
new Request();
$context =
$this->
createSalesChannelContext();
$this->
expectParamMissingException('productId'
);
$this->
getPageLoader()->
load($request,
$context);
} public function testItRequiresAValidProductParam(): void
{ $request =
new Request([],
[],
['productId' => '99999911ffff4fffafffffff19830531'
]);
$context =
$this->
createSalesChannelContext();
$this->
expectException(ProductNotFoundException::
class);
$this->
getPageLoader()->
load($request,
$context);
}