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
{ $context =
$this->
createMock(SalesChannelContext::
class);
$context->
method('getShippingLocation'
) ->
willReturn($shippingLocation);
$context->
method('getSalesChannelId'
)