You are here

public function XMLSitemapCustomFunctionalTest::setUp in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_custom/xmlsitemap_custom.test \XMLSitemapCustomFunctionalTest::setUp()

Setup.

Overrides XMLSitemapTestHelper::setUp

File

xmlsitemap_custom/xmlsitemap_custom.test, line 27
Unit tests for the xmlsitemap_custom.

Class

XMLSitemapCustomFunctionalTest
Class with Functional Test for XML Sitemap Custom.

Code

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