class PromotionEntityTest extends TestCase
{ /**
* This test verifies, that we only get an
* empty AND rule, if no precondition has been added.
*
* @group promotions
*/
public function testPreconditionRuleEmpty(): void
{ $promotion =
new PromotionEntity();
$expected =
new AndRule();
static::
assertEquals($expected,
$promotion->
getPreconditionRule());
} /**
* This test verifies, that we have the correct persona
* rule inside our precondition rule structure.
* We simulate a new rule and rule entity, and add
* that to the promotion.
*
* @group promotions
*/