You are here

function CommerceCartTestCaseAnonymousToAuthenticated::setUp in Commerce Core 7

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

modules/cart/tests/commerce_cart.test, line 486
Functional tests for the commerce cart module.

Class

CommerceCartTestCaseAnonymousToAuthenticated
Test cart conversion from anonymous to authenticated.

Code

function setUp() {
  parent::setUpHelper('all');

  // Create a dummy product display content type.
  $this
    ->createDummyProductDisplayContentType();

  // Create dummy product display nodes (and their corresponding product
  //  display).
  $sku = 'PROD-01';
  $product_name = 'Product One';
  $this->product = $this
    ->createDummyProduct($sku, $product_name);
  $this->product_node = $this
    ->createDummyProductNode(array(
    $this->product->product_id,
  ), $product_name);
}