createLineItemWithTaxId example

array $taxIds,
        string $operator,
        string $lineItemTaxId,
        bool $expected
    ): void {
        $this->rule->assign([
            'taxIds' => $taxIds,
            'operator' => $operator,
        ]);

        $match = $this->rule->match(new LineItemScope(
            $this->createLineItemWithTaxId($lineItemTaxId),
            $this->createMock(SalesChannelContext::class)
        ));

        static::assertSame($expected$match);
    }

    /** * @return array<string, array<array<string>|string|bool>> */
    public static function getLineItemScopeTestData(): array
    {
        
Home | Imprint | This part of the site doesn't use cookies.