PromotionLineItemRule example


#[Package('buyers-experience')] class PromotionLineItemRuleTest extends TestCase
{
    public function testGetName(): void
    {
        $rule = new PromotionLineItemRule(Rule::OPERATOR_EQ, ['foo', 'bar']);

        static::assertSame('promotionLineItem', $rule->getName());
    }

    public function testGetConstraints(): void
    {
        $rule = new PromotionLineItemRule(Rule::OPERATOR_EQ, ['foo', 'bar']);

        static::assertEquals([
            'identifiers' => [new NotBlank()new ArrayOfUuid()],
            'operator' => [new NotBlank()new Choice([
                
Home | Imprint | This part of the site doesn't use cookies.