You are here

public function CommerceMessageTestBase::setUp in Commerce Message 7

Overrides DrupalWebTestCase::setUp().

Overrides DrupalWebTestCase::setUp

2 calls to CommerceMessageTestBase::setUp()
CommerceMessageAdminOrderNotificationTest::setUp in ./commerce_message.test
Overrides DrupalWebTestCase::setUp().
CommerceMessageOrderNotificationTest::setUp in ./commerce_message.test
Overrides DrupalWebTestCase::setUp().
2 methods override CommerceMessageTestBase::setUp()
CommerceMessageAdminOrderNotificationTest::setUp in ./commerce_message.test
Overrides DrupalWebTestCase::setUp().
CommerceMessageOrderNotificationTest::setUp in ./commerce_message.test
Overrides DrupalWebTestCase::setUp().

File

./commerce_message.test, line 31

Class

CommerceMessageTestBase

Code

public function setUp() {
  $modules = parent::setUpHelper('all');
  $modules[] = 'rules';
  $modules[] = 'entityreference';
  $modules[] = 'entity_token';
  $modules[] = 'message';
  $modules[] = 'message_notify';
  $modules[] = 'commerce_message';
  parent::setUp($modules);
  $this
    ->resetAll();
  $this->store_admin = $this
    ->createStoreAdmin();
  if (!$this->store_admin) {
    $this
      ->fail(t('Failed to create Store Admin user for test.'));
  }

  // Set the default country to US.
  variable_set('site_default_country', 'US');
}