function XMLSitemapRobotsTxtIntegrationTest::testRobotsTxt in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.test \XMLSitemapRobotsTxtIntegrationTest::testRobotsTxt()
File
- ./
xmlsitemap.test, line 800 - Unit tests for the xmlsitemap module.
Class
Code
function testRobotsTxt() {
// Request the un-clean robots.txt path so this will work in case there is
// still the robots.txt file in the root directory.
$this
->drupalGet('', array(
'query' => 'q=robots.txt',
));
$this
->assertRaw('Sitemap: ' . url('sitemap.xml', array(
'absolute' => TRUE,
)));
}