You are here

public function CommerceWebformTestCase::setUp in Commerce Webform 7.2

setUp() performs any pre-requisite tasks that need to happen.

Overrides DrupalWebTestCase::setUp

File

tests/commerce_webform.test, line 37
Commerce Webform tests.

Class

CommerceWebformTestCase
Test Commerce Webform module's features.

Code

public function setUp() {
  $modules = parent::setUpHelper('all');
  $modules[] = 'commerce_webform';
  parent::setUp($modules);

  // Create and log in our privileged user.
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'access content',
    'administer site configuration',
    'access administration pages',
    'access content overview',
    'bypass node access',
    'administer content types',
    'administer nodes',
    'access all webform results',
    'access own webform results',
    'edit all webform submissions',
    'delete all webform submissions',
    'access own webform submissions',
    'edit own webform submissions',
    'delete own webform submissions',
    'edit webform components',
    'alter productfield on paid webform',
    'administer checkout',
    'access checkout',
    'configure store',
    'administer commerce_order entities',
    'administer product types',
    'administer commerce_product entities',
    'create commerce_product entities',
    'edit any commerce_product entity',
    'view own commerce_product entities',
    'view any commerce_product entity',
  ));
  $this->basic_user = $this
    ->drupalCreateUser(array(
    'access content',
    'access checkout',
  ));
  cache_clear_all();
}