You are here

function XMLSitemapI18nNodeTest::setUp in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap_i18n/xmlsitemap_i18n.test \XMLSitemapI18nNodeTest::setUp()

Set up an administrative user account and testing keys.

Overrides XMLSitemapI18nWebTestCase::setUp

File

xmlsitemap_i18n/xmlsitemap_i18n.test, line 122
Unit tests for the xmlsitemap_i18n module.

Class

XMLSitemapI18nNodeTest

Code

function setUp($modules = array()) {
  $modules[] = 'xmlsitemap_node';
  parent::setUp($modules);
  variable_set('language_content_type_page', 1);
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'administer nodes',
  ));
  $this
    ->drupalLogin($this->admin_user);
}