yield 'operator_empty / not match / identifier' =>
[Rule::OPERATOR_NEQ, false,
['kyln123', 'kyln456'
], 'kyln123'
];
yield 'operator_empty / match / identifier' =>
[Rule::OPERATOR_EMPTY, true,
['kyln123', 'kyln456'
], null
];
yield 'operator_neq / match / no customer' =>
[Rule::OPERATOR_NEQ, true,
['kyln123', 'kyln456'
], 'kyln123', true
];
yield 'operator_empty / match / no customer' =>
[Rule::OPERATOR_EMPTY, true,
['kyln123', 'kyln456'
], 'kyln123', true
];
} public function createScope(?CustomerEntity
$customer): CheckoutRuleScope
{ $context =
$this->
createMock(SalesChannelContext::
class);
$context->
method('getCustomer'
)->
willReturn($customer);
return new CheckoutRuleScope($context);
}}