public function ThemekeyNodePropertiesTestCase::testPropertyNodeLanguageEnglish in ThemeKey 7.3
File
- tests/
ThemekeyNodePropertiesTestCase.test, line 37 - Implements tests for the theme switching rules.
Class
- ThemekeyNodePropertiesTestCase
- @file Implements tests for the theme switching rules.
Code
public function testPropertyNodeLanguageEnglish() {
// Add a new language.
require_once DRUPAL_ROOT . '/includes/locale.inc';
locale_add_language('it', 'Italian', 'Italiano', LANGUAGE_LTR, '', '', TRUE, FALSE);
$node = $this
->drupalCreateNode(array(
'language' => 'it',
'body' => array(
'it' => array(
array(),
),
),
));
$this
->simplePropertyTest('node:language', '=', 'it', array(
'path' => 'node/' . $node->nid,
));
}