wiele wywołań metody

        $updateOriginalPricesForItemCommand1 = new UpdateOriginalPricesForItemCommand(
            new ItemPrices(
                'x11x',
                $cartItem1Money,
                $cartItem1Money
            )
        );

        $updateOriginalPricesForItemCommand2 = new UpdateOriginalPricesForItemCommand(
            new ItemPrices(
                'x22x',
                $cartItem2Money,
                $cartItem2Money
            )
        );

        $commandBus = $this->createMock(CommandBusInterface::class);
        $commandBus->expects($this->exactly(2))->method('handle')
            ->will($this->onConsecutiveCalls([
                $updateOriginalPricesForItemCommand1, $updateOriginalPricesForItemCommand2
            ]));
Komentarze wyłączone