You are here

function CommerceReportsBaseTestCase::setUp in Commerce Reporting 7.4

Overrides DrupalWebTestCase::setUp().

3 calls to CommerceReportsBaseTestCase::setUp()
CommerceReportsCustomerTestCase::setUp in src/Tests/CommerceReportsCustomerTestCase.php
Overrides DrupalWebTestCase::setUp().
CommerceReportsProductTestCase::setUp in src/Tests/CommerceReportsProductTestCase.php
Overrides DrupalWebTestCase::setUp().
CommerceReportsViewsExportTestCase::setUp in src/Tests/CommerceReportsViewsExportTestCase.php
Overrides DrupalWebTestCase::setUp().
3 methods override CommerceReportsBaseTestCase::setUp()
CommerceReportsCustomerTestCase::setUp in src/Tests/CommerceReportsCustomerTestCase.php
Overrides DrupalWebTestCase::setUp().
CommerceReportsProductTestCase::setUp in src/Tests/CommerceReportsProductTestCase.php
Overrides DrupalWebTestCase::setUp().
CommerceReportsViewsExportTestCase::setUp in src/Tests/CommerceReportsViewsExportTestCase.php
Overrides DrupalWebTestCase::setUp().

File

src/Tests/CommerceReportsBaseTestCase.php, line 40

Class

CommerceReportsBaseTestCase
Class CommerceReportsBaseTestCase

Namespace

Drupal\commerce_reports\Tests

Code

function setUp() {
  $modules = parent::setUpHelper('all');
  $modules[] = 'commerce_reports';
  foreach ($this->additional_modules as $module) {
    $modules[] = $module;
  }
  parent::setUp($modules);
  $this->products = array();
  $this->customers = array();
  $this->orders = array();
  $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');
}