You are here

function CountriesBaseSetupTest::setUp in Countries 8

Same name and namespace in other branches
  1. 7.2 tests/countries.test \CountriesBaseSetupTest::setUp()
7 calls to CountriesBaseSetupTest::setUp()
CountriesBaseImportUnitTest::setUp in tests/countries.test
CountriesCacheUnitTest::setUp in tests/countries.test
CountriesCRUDUIUnitTest::setUp in tests/countries.test
CountriesCRUDUnitTest::setUp in tests/countries.test
CountriesElementUnitTest::setUp in tests/countries.test

... See full list

7 methods override CountriesBaseSetupTest::setUp()
CountriesBaseImportUnitTest::setUp in tests/countries.test
CountriesCacheUnitTest::setUp in tests/countries.test
CountriesCRUDUIUnitTest::setUp in tests/countries.test
CountriesCRUDUnitTest::setUp in tests/countries.test
CountriesElementUnitTest::setUp in tests/countries.test

... See full list

File

tests/countries.test, line 28
Tests for countries.module.

Class

CountriesBaseSetupTest
Test the node_load_multiple() function.

Code

function setUp() {
  $modules = func_get_args();
  if (isset($modules[0]) && is_array($modules[0])) {
    $modules = $modules[0];
  }
  if (empty($modules)) {
    $modules = array(
      'countries',
    );
  }
  parent::setUp($modules);

  // Create admin user and log in admin user.
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'administer site configuration',
  ));
  include_once DRUPAL_ROOT . '/includes/locale.inc';
  include_once DRUPAL_ROOT . '/includes/iso.inc';
}