/**
* This test verifies that our rule works correctly
* when matching using a line item scope.
*
* @dataProvider matchTestData
*/
public function testMatchScopeLineItem(bool
$expected, bool
$ruleValue, bool
$itemValue): void
{ $this->rule->
assign(['isPromoted' =>
$ruleValue]);
$scope =
new LineItemScope( $this->
createLineItemWithTopsellerMarker($itemValue),
$this->
createMock(SalesChannelContext::
class) );
static::
assertSame($expected,
$this->rule->
match($scope));
} /**
* This test verifies that our rule works correctly
* when matching using a cart rule scope.
*
* @dataProvider matchTestData
*/