function CountriesBaseSetupTest::setUp in Countries 8
Same name and namespace in other branches
- 7.2 tests/countries.test \CountriesBaseSetupTest::setUp()
7 calls to CountriesBaseSetupTest::setUp()
7 methods override CountriesBaseSetupTest::setUp()
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';
}