You are here

function CountriesElementUnitTest::setUp in Countries 8

Same name and namespace in other branches
  1. 7.2 tests/countries.test \CountriesElementUnitTest::setUp()

Overrides CountriesBaseSetupTest::setUp

File

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

Class

CountriesElementUnitTest
Test the node_load_multiple() function.

Code

function setUp() {
  parent::setUp(array(
    'countries',
    'countries_example',
  ));
  $this
    ->drupalLogin($this->admin_user);

  // We need a couple of disabled countries for the tests.
  $af = country_load('af');
  $af->enabled = 0;
  country_save($af);
  $nz = country_load('nz');
  $nz->enabled = 0;
  country_save($nz);
}