/**
* @covers \Shopware\Core\Checkout\Customer\Rule\ShippingCountryRule
*
* @internal
*/
#[Package('business-ops')]
class ShippingCountryRuleTest extends TestCase
{ public function testEquals(): void
{ $rule =
(new ShippingCountryRule())->
assign(['countryIds' =>
['SWAG-AREA-COUNTRY-ID-1'
], 'operator' => ShippingCountryRule::OPERATOR_EQ
]);
$cart =
new Cart('test'
);
$context =
$this->
createMock(SalesChannelContext::
class);
$country =
new CountryEntity();
$country->
setId('SWAG-AREA-COUNTRY-ID-1'
);
$context ->
method('getShippingLocation'
) ->
willReturn(ShippingLocation::
createFromCountry($country));