ThemekeySystemPropertiesTestCase.test in ThemeKey 7.3
Same filename and directory in other branches
Implements tests for the theme switching rules.
File
tests/ThemekeySystemPropertiesTestCase.testView source
<?php
/**
 * @file
 * Implements tests for the theme switching rules.
 */
class ThemekeySystemPropertiesTestCase extends ThemekeyWebTestCase {
  public static function getInfo() {
    return array(
      'name' => 'ThemeKey System Properties',
      'description' => 'Test the themeKey system properties (system:).',
      'group' => 'ThemeKey',
    );
  }
  public function testPropertySystemDummy() {
    $this
      ->simplePropertyTest('system:dummy', '=', 'dummy');
  }
  public function testPropertySystemQuery_Param() {
    $url = array(
      'options' => array(
        'query' => array(
          'test' => TRUE,
        ),
      ),
    );
    $this
      ->simplePropertyTest('system:query_param', '=', 'test=1', $url);
  }
  public function testPropertySystemQuery_String() {
    $url = array(
      'options' => array(
        'query' => array(
          'test' => TRUE,
        ),
      ),
    );
    $this
      ->simplePropertyTest('system:query_string', '=', 'test=1', $url);
  }
}Classes
| Name   | Description | 
|---|---|
| ThemekeySystemPropertiesTestCase | @file Implements tests for the theme switching rules. | 
