You are here

public function XMLSitemapFunctionalTest::setUp in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap.test \XMLSitemapFunctionalTest::setUp()

Setup.

Overrides XMLSitemapTestHelper::setUp

File

./xmlsitemap.test, line 892
Unit tests for the xmlsitemap.

Class

XMLSitemapFunctionalTest
XML Sitemap Functional Test.

Code

public function setUp($modules = array()) {
  $modules[] = 'path';
  parent::setUp($modules);
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'access content',
    'administer site configuration',
    'administer xmlsitemap',
  ));
  $this
    ->drupalLogin($this->admin_user);
}