You are here

ThemekeySystemPropertiesTestCase.test in ThemeKey 7.3

Implements tests for the theme switching rules.

File

tests/ThemekeySystemPropertiesTestCase.test
View 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

Namesort descending Description
ThemekeySystemPropertiesTestCase @file Implements tests for the theme switching rules.