createLineItemWithProductStreams example

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

        $match = $this->rule->match(new LineItemScope(
            $this->createLineItemWithProductStreams($lineItemProductStreamIds),
            $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.