You are here

protected function CommerceMigrateBaseTestCase::getOrder in Commerce Migrate 7

Load an order by number.

Parameters

string $order_number: Order number. See "orders.csv".

Return value

\EntityDrupalWrapper Entity wrapper for commerce order.

See also

commerce_order_load_by_number()

1 call to CommerceMigrateBaseTestCase::getOrder()
CommerceMigrateTestCase::testOrder in tests/commerce_migrate_tests.test
Tests integrity of an order.

File

tests/commerce_migrate_base.test, line 116
Base facade for "Commerce Migrate" tests.

Class

CommerceMigrateBaseTestCase
Class CommerceMigrateBaseTestCase.

Code

protected function getOrder($order_number) {
  return $this
    ->getEntityWrapper('commerce_order', 'order_number', $order_number);
}