You are here

public function CommerceOrderUIAdminTest::testCommerceOrderUICreateOrder in Commerce Core 7

Test if an order gets correctly created.

File

modules/order/tests/commerce_order_ui.test, line 79
Functional tests for the commerce order UI module.

Class

CommerceOrderUIAdminTest
Functional tests for the commerce order UI module.

Code

public function testCommerceOrderUICreateOrder() {

  // First, check if the order has been created in the database.
  $this
    ->assertTrue(is_object($this->order), t('Order has been created in database'));

  // Also, the user owning the order should match.
  $this
    ->assertTrue($this->order->uid == $this->store_customer->uid, t('Order owner match'));
}