You are here

public function ThemekeyNodePropertiesTestCase::testPropertyNodeLanguage in ThemeKey 7.2

Same name and namespace in other branches
  1. 7.3 tests/ThemekeyNodePropertiesTestCase.test \ThemekeyNodePropertiesTestCase::testPropertyNodeLanguage()
  2. 7 tests/ThemekeyNodePropertiesTestCase.test \ThemekeyNodePropertiesTestCase::testPropertyNodeLanguage()

File

tests/ThemekeyNodePropertiesTestCase.test, line 28
Implements tests for the theme switching rules.

Class

ThemekeyNodePropertiesTestCase
@file Implements tests for the theme switching rules.

Code

public function testPropertyNodeLanguage() {
  $node = $this
    ->drupalCreateNode(array(
    'language' => LANGUAGE_NONE,
  ));
  $this
    ->simplePropertyTest('node:language', '=', 'neutral', array(
    'path' => 'node/' . $node->nid,
  ));
}