Dumplie\CustomerService\Tests\AbstractCustomerServiceContext::customerPlacedOrder PHP Method

customerPlacedOrder() public method

public customerPlacedOrder ( string $orderId )
$orderId string
    public function customerPlacedOrder(string $orderId)
    {
        $transaction = $this->transactionFactory->open();
        try {
            $this->eventLog->log(new CustomerPlacedOrder($orderId));
            $transaction->commit();
        } catch (\Exception $e) {
            $transaction->rollback();
            throw $e;
        }
    }