/**
* @internal
*
* @covers \Shopware\Core\System\Tax\Aggregate\TaxRule\TaxRuleCollection
*/
class TaxRuleCollectionTest extends TestCase
{ public function testLatestActivationDate(): void
{ $rule1 =
new TaxRuleEntity();
$rule1->
setId('rule1'
);
$rule1->
setActiveFrom(new \
DateTime('2020-01-01'
));
$rule2 =
new TaxRuleEntity();
$rule2->
setId('rule2'
);
$rule2->
setActiveFrom(new \
DateTime('2020-01-02'
));
$rule3 =
new TaxRuleEntity();
$rule3->
setId('rule3'
);
$collection =
new TaxRuleCollection([ $rule1,
$rule2,