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

test_refund_order() public method

public test_refund_order ( )
    function test_refund_order()
    {
        $orderId = (string) Uuid::uuid4();
        $this->customerServiceContext->customerPlacedOrder($orderId);
        $acceptCommand = new AcceptOrder($orderId);
        $this->customerServiceContext->commandBus()->handle($acceptCommand);
        $refundCommand = new RefundOrder($orderId);
        $this->customerServiceContext->commandBus()->handle($refundCommand);
    }