You are here

protected function CommerceAjaxAddCartBase::setUpHelper in Commerce Ajax Add to Cart 7.2

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

Overrides CommerceBaseTestCase::setUpHelper

See also

CommerceBaseTestCase::setUpHelper()

1 call to CommerceAjaxAddCartBase::setUpHelper()
CommerceAjaxAddCartUI::setUp in tests/dc_ajax_add_cart_ui.test
Implementation of setUp().

File

tests/dc_ajax_add_cart_ui.test, line 37
Functional tests for commerce ajax add to cart module.

Class

CommerceAjaxAddCartBase
Abstract class for commerce ajax add to cart testing.

Code

protected function setUpHelper($set = 'all', array $other_modules = array()) {

  // Enable all commerce modules + dc_ajax_add_cart.
  $modules = parent::setUpHelper($set, $other_modules);
  $modules[] = 'dc_ajax_add_cart';
  parent::setUp($modules);
  $this->storeAdmin = $this
    ->createStoreAdmin();
  $this->storeCustomer = $this
    ->createStoreCustomer();
}