use Shopware\Core\System\Tax\TaxRuleType\IndividualStatesRuleTypeFilter;
/**
* @internal
*
* @covers \Shopware\Core\System\Tax\TaxRuleType\IndividualStatesRuleTypeFilter
*/
class IndividualStatesRuleTypeFilterTest extends TestCase
{ public function testMatchesNotWithWrongType(): void
{ $type =
new TaxRuleTypeEntity();
$type->
setTechnicalName('not me'
);
$rule =
new TaxRuleEntity();
$rule->
setActiveFrom(new \
DateTime('2020-01-01'
));
$rule->
setType($type);
$filter =
new IndividualStatesRuleTypeFilter();
static::
assertFalse($filter->
match($rule, null,
new ShippingLocation(new CountryEntity(), null, null
)));
} public function testMatchesNotWithWithoutState(): void
{