$repository =
$this->
createMock(EntityRepository::
class);
$repository->
method('searchIds'
) ->
willReturn($result);
return $repository;
} private function getCountryStub(?string
$id = null, ?bool
$active = true, ?bool
$shippingAvailable = true
): CountryEntity
{ $country =
new CountryEntity();
$country->
setId($id ?? Uuid::
randomHex());
$country->
setActive((bool) $active);
$country->
addTranslated('name', 'test'
);
$country->
setShippingAvailable((bool) $shippingAvailable);
return $country;
} private function getContextMock(?ShippingLocation
$shippingLocation = null
): MockObject&SalesChannelContext
{