/**
* @covers \Shopware\Core\Checkout\Cart\Rule\GoodsCountRule
*
* @internal
*/
#[Package('business-ops')]
class GoodsCountRuleTest extends TestCase
{ public function testRuleWithExactCountMatch(): void
{ $rule =
(new GoodsCountRule())->
assign(['count' => 0, 'operator' => Rule::OPERATOR_EQ
]);
$cart =
new Cart('test'
);
$context =
$this->
createMock(SalesChannelContext::
class);
static::
assertTrue( $rule->
match(new CartRuleScope($cart,
$context)) );
} public function testRuleWithExactCountNotMatch(): void
{