/**
* @covers \Shopware\Core\Checkout\Customer\Rule\ShippingStreetRule
*
* @internal
*/
#[Package('business-ops')]
class ShippingStreetRuleTest extends TestCase
{ public function testWithExactMatch(): void
{ $rule =
(new ShippingStreetRule())->
assign(['streetName' => 'example street'
]);
$cart =
new Cart('test'
);
$context =
$this->
createMock(SalesChannelContext::
class);
$context ->
method('getShippingLocation'
) ->
willReturn( ShippingLocation::
createFromAddress( $this->
createAddress('example street'
) ) );