You are here

public function ThemekeyWebTestCase::addThemeKeyRule in ThemeKey 7

Same name and namespace in other branches
  1. 7.3 tests/themekey.test \ThemekeyWebTestCase::addThemeKeyRule()
  2. 7.2 tests/themekey.test \ThemekeyWebTestCase::addThemeKeyRule()
3 calls to ThemekeyWebTestCase::addThemeKeyRule()
ThemekeyMultipleNodePropertiesTestCase::testMultipleProperties in tests/ThemekeyMultipleNodePropertiesTestCase.test
ThemekeyWebTestCase::multiplePropertyTest in tests/themekey.test
add multiple properties
ThemekeyWebTestCase::simplePropertyTest in tests/themekey.test

File

tests/themekey.test, line 92
Implements tests for the theme switching rules.

Class

ThemekeyWebTestCase
@file Implements tests for the theme switching rules.

Code

public function addThemeKeyRule($property, $operator, $value, $theme, $enabled = '1', $wildcard = '') {
  $edit = array(
    'new_item[property]' => $property,
    'new_item[wildcard]' => $wildcard,
    'new_item[operator]' => $operator,
    'new_item[value]' => $value,
    'new_item[theme]' => $theme,
    'new_item[enabled]' => $enabled,
  );
  $this
    ->drupalPost('admin/config/user-interface/themekey/properties', $edit, t('Save configuration'));
}