Dumplie\CustomerService\Tests\Integration\Application\Generic\OrderTestCase::test_send_order PHP Method

test_send_order() public method

public test_send_order ( )
    function test_send_order()
    {
        $orderId = (string) Uuid::uuid4();
        $this->customerServiceContext->customerPlacedOrder($orderId);
        $acceptCommand = new AcceptOrder($orderId);
        $this->customerServiceContext->commandBus()->handle($acceptCommand);
        $prepareCommand = new PrepareOrder($orderId);
        $this->customerServiceContext->commandBus()->handle($prepareCommand);
        $sendCommand = new SendOrder($orderId);
        $this->customerServiceContext->commandBus()->handle($sendCommand);
    }