/**
* @dataProvider getMatchingRuleTestData
*/
public function testIfMatchesCorrect( string
$operator,
float
$volume,
bool
$expected ): void
{ $this->rule->
assign(['volume' =>
$volume, 'operator' =>
$operator]);
$match =
$this->rule->
match(new CartRuleScope( $this->
createCartDummy(),
$this->
createMock(SalesChannelContext::
class) ));
static::
assertSame($expected,
$match);
} /**
* @dataProvider getMatchingRuleTestData
*/
public function testIfMatchesCorrectOnNested( string
$operator,