You are here

protected function XMLSitemapTestHelper::checkFilesDirectory in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap.test \XMLSitemapTestHelper::checkFilesDirectory()

Check the files directory is created (massive fails if not done).

@todo This can be removed when http://drupal.org/node/654752 is fixed.

1 call to XMLSitemapTestHelper::checkFilesDirectory()
XMLSitemapTestHelper::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.…

File

./xmlsitemap.test, line 57
Unit tests for the xmlsitemap module.

Class

XMLSitemapTestHelper
Helper test class with some added functions for testing.

Code

protected function checkFilesDirectory() {
  if (!xmlsitemap_check_directory()) {
    $this
      ->fail(t('Sitemap directory was found and writable for testing.'));
  }
}