Commit f542f8cc authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Fixed test failures with xmlsitemap_get_directory() and its static cache.

parent 52baa6f1
......@@ -22,6 +22,7 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
// Ensure the files directory is created and writable during testing.
// @todo This can be removed when http://drupal.org/node/654752 is fixed.
drupal_static_reset('xmlsitemap_get_directory');
$this->checkFilesDirectory();
}
......@@ -36,6 +37,8 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
/**
* Check the files directory is created (massive fails if not done).
*
* @todo This can be removed when http://drupal.org/node/654752 is fixed.
*/
protected function checkFilesDirectory() {
if (!xmlsitemap_check_directory()) {
......@@ -157,7 +160,7 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
protected function assertXMLSitemapProblems($problem_text = FALSE) {
$this->drupalGet('admin/config/search/xmlsitemap');
$this->assertText(t('One or more problems were detected with your sitemap configuration. Please check the status report for more information.'));
$this->assertText(t('One or more problems were detected with your XML sitemap configuration. Please check the status report for more information.'));
if ($problem_text) {
$this->clickLink(t('status report'));
$this->assertText($problem_text);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment