protected function setUp(): void
{ $saleChannelProductEntity =
new SalesChannelProductEntity();
$saleChannelProductEntity->
setId('product123'
);
$mockConfiguratorLoader =
$this->
createMock(ProductConfiguratorLoader::
class);
$mockConfiguratorLoader->
method('load'
)->
willReturn( new PropertyGroupCollection() );
$repositoryMock =
$this->
createMock(EntityRepository::
class);
$this->buyBoxResolver =
new BuyBoxCmsElementResolver($mockConfiguratorLoader,
$repositoryMock);
} public function testGetType(): void
{ static::
assertSame('buy-box',
$this->buyBoxResolver->
getType());
} public function testCollectWithEmptyConfig(): void
{ $resolverContext =
new ResolverContext($this->
createMock(SalesChannelContext::
class),
new Request());