public function SkinrDisplayTestCase::testCurrentTheme in Skinr 8.2
File
- src/
Tests/ skinr.test, line 773 - Tests for the Skinr module.
Class
- SkinrDisplayTestCase
- Tests API functionality.
Namespace
Drupal\tracker\TestsCode
public function testCurrentTheme() {
$this
->drupalGet('skinr-test/current-theme-default');
$this
->assertText('Current theme is bartik.', 'Current theme is Bartik.');
$this
->drupalGet('skinr-test/current-theme-callback');
$this
->assertText('Current theme is garland.', 'Current theme is overridden through theme callback to Garland.');
$this
->drupalGet('skinr-test/current-theme-hook-custom-theme');
$this
->assertText('Current theme is garland.', 'Current theme is overridden through hook_custom_theme() to Garland.');
$this
->drupalGet('admin/skinr-test/current-theme-admin');
$this
->assertText('Current theme is garland.', 'Current theme is admin theme.');
$this
->drupalGet('admin/skinr-test/current-theme-admin-exclude');
$this
->assertText('Current theme is bartik.', 'Current theme is not admin theme.');
}