function XMLSitemapTestHelper::setUp in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.test \XMLSitemapTestHelper::setUp()
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix. A temporary files directory is created with the same name as the database prefix.
Parameters
...: List of modules to enable for the duration of the test. This can be either a single array or a variable number of string arguments.
Overrides DrupalWebTestCase::setUp
9 calls to XMLSitemapTestHelper::setUp()
- XMLSitemapCustomFunctionalTest::setUp in xmlsitemap_custom/
xmlsitemap_custom.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- XMLSitemapEnginesFunctionalTest::setUp in xmlsitemap_engines/
tests/ xmlsitemap_engines.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- XMLSitemapFunctionalTest::setUp in ./
xmlsitemap.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- XMLSitemapI18nWebTestCase::setUp in xmlsitemap_i18n/
xmlsitemap_i18n.test - Set up an administrative user account and testing keys.
- XMLSitemapMenuFunctionalTest::setUp in xmlsitemap_menu/
xmlsitemap_menu.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
9 methods override XMLSitemapTestHelper::setUp()
- XMLSitemapCustomFunctionalTest::setUp in xmlsitemap_custom/
xmlsitemap_custom.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- XMLSitemapEnginesFunctionalTest::setUp in xmlsitemap_engines/
tests/ xmlsitemap_engines.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- XMLSitemapFunctionalTest::setUp in ./
xmlsitemap.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- XMLSitemapI18nWebTestCase::setUp in xmlsitemap_i18n/
xmlsitemap_i18n.test - Set up an administrative user account and testing keys.
- XMLSitemapMenuFunctionalTest::setUp in xmlsitemap_menu/
xmlsitemap_menu.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
File
- ./
xmlsitemap.test, line 16 - Unit tests for the xmlsitemap module.
Class
- XMLSitemapTestHelper
- Helper test class with some added functions for testing.
Code
function setUp($modules = array()) {
array_unshift($modules, 'xmlsitemap');
parent::setUp($modules);
// Reset any of our module's static variables.
xmlsitemap_static_reset();
// Ensure the files directory is created and writable during testing.
// @todo This can be removed when http://drupal.org/node/654752 is backported to Drupal 6.
$this
->checkFilesDirectory();
}