You are here

public function XMLSitemapEnginesFunctionalTest::setUp in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_engines/tests/xmlsitemap_engines.test \XMLSitemapEnginesFunctionalTest::setUp()

Setup.

Overrides XMLSitemapTestHelper::setUp

File

xmlsitemap_engines/tests/xmlsitemap_engines.test, line 38
Tests for the xmlsitemap_engines module.

Class

XMLSitemapEnginesFunctionalTest
Functional Test.

Code

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

  // @todo For some reason the test client does not have clean URLs while
  // the test runner does, so it causes mismatches in watchdog assertions
  // later.
  variable_set('clean_url', 0);
  $this->submit_url = url('ping', array(
    'absolute' => TRUE,
    'query' => array(
      'sitemap' => '',
    ),
  )) . '[sitemap]';
}