public function ThemekeyNodePropertiesTestCase::testPropertyNodeLanguage in ThemeKey 7.3
Same name and namespace in other branches
- 7 tests/ThemekeyNodePropertiesTestCase.test \ThemekeyNodePropertiesTestCase::testPropertyNodeLanguage()
- 7.2 tests/ThemekeyNodePropertiesTestCase.test \ThemekeyNodePropertiesTestCase::testPropertyNodeLanguage()
File
- tests/
ThemekeyNodePropertiesTestCase.test, line 32 - 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,
));
}