public function ThemekeyModulePluginsTestCase::testHookThemekeyCustomThemeAlter in ThemeKey 7.3
File
- tests/ThemekeyModulePluginsTestCase.test, line 26
- Implements tests for the theme switching rules.
Class
- ThemekeyModulePluginsTestCase
- @file
Implements tests for the theme switching rules.
Code
public function testHookThemekeyCustomThemeAlter() {
$url = array(
'path' => '<front>',
'options' => array(),
);
$this
->drupalGet($url['path'], $url['options']);
$this
->assertTheme('bartik');
$this
->addThemeKeyRule('themekey_simpletest:custom_theme_alter_test', '=', '1', 'garland');
$this
->drupalGet($url['path'], $url['options']);
$this
->assertTheme('seven');
}