public function ThemekeyWebTestCase::simplePropertyTest in ThemeKey 7.2
Same name and namespace in other branches
- 7.3 tests/themekey.test \ThemekeyWebTestCase::simplePropertyTest()
- 7 tests/themekey.test \ThemekeyWebTestCase::simplePropertyTest()
14 calls to ThemekeyWebTestCase::simplePropertyTest()
- ThemekeyDrupalPropertiesTestCase::testPropertyDrupalIsFrontPage in tests/ThemekeyDrupalPropertiesTestCase.test
- ThemekeyNodePropertiesTestCase::testPropertyNodeChanged in tests/ThemekeyNodePropertiesTestCase.test
- ThemekeyNodePropertiesTestCase::testPropertyNodeCreated in tests/ThemekeyNodePropertiesTestCase.test
- ThemekeyNodePropertiesTestCase::testPropertyNodeLanguage in tests/ThemekeyNodePropertiesTestCase.test
- ThemekeyNodePropertiesTestCase::testPropertyNodeNid in tests/ThemekeyNodePropertiesTestCase.test
... See full list
File
- tests/themekey.test, line 29
- Implements tests for the theme switching rules.
Class
- ThemekeyWebTestCase
- @file
Implements tests for the theme switching rules.
Code
public function simplePropertyTest($property, $operator, $value, $url = array()) {
debug($property . $operator . $value, 'Testing Rule');
$url += array(
'path' => '<front>',
'options' => array(),
);
$this
->drupalGet($url['path'], $url['options']);
$this
->assertTheme('bartik');
$this
->addThemeKeyRule($property, $operator, $value, 'garland');
$this
->drupalGet($url['path'], $url['options']);
$this
->assertTheme('garland');
}