SitemapCssTest.php in Sitemap 2.0.x
File
src/Tests/SitemapCssTest.php
View source
<?php
namespace Drupal\sitemap\Tests;
class SitemapCssTest extends SitemapTestBase {
protected function setUp() {
parent::setUp();
$this
->drupalLogin($this->userAdmin);
}
public function testIncludeCssFile() {
$this
->drupalGet('/sitemap');
$this
->assertRaw('sitemap.theme.css');
$this
->saveSitemapForm([
'include_css' => FALSE,
]);
drupal_flush_all_caches();
$this
->drupalGet('/sitemap');
$this
->assertNoRaw('sitemap.theme.css');
}
}
Classes
Name |
Description |
SitemapCssTest |
Tests the inclusion of the sitemap css file based on sitemap settings. |