You are here

protected function CommerceCartTestCase::setUpHelper in Commerce Core 7

Helper function to perform the common test tasks for cart testing.

Overrides CommerceBaseTestCase::setUpHelper

See also

CommerceBaseTestCase::setUpHelper()

4 calls to CommerceCartTestCase::setUpHelper()
CommerceCartTestCaseAnonymousToAuthenticated::setUp in modules/cart/tests/commerce_cart.test
Implementation of setUp().
CommerceCartTestCaseAttributes::setUp in modules/cart/tests/commerce_cart.test
Implementation of setUp().
CommerceCartTestCaseMultiProducts::setUp in modules/cart/tests/commerce_cart.test
Implementation of setUp().
CommerceCartTestCaseSimpleProduct::setUp in modules/cart/tests/commerce_cart.test
Implementation of setUp().

File

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

Class

CommerceCartTestCase
Abstract class for Commerce cart testing. All Commerce cart tests should extend this class.

Code

protected function setUpHelper($set = 'all', array $other_modules = array()) {
  $modules = parent::setUpHelper($set, $other_modules);
  parent::setUp($modules);
  $this->store_admin = $this
    ->createStoreAdmin();
  $this->store_customer = $this
    ->createStoreCustomer();
}