public function ThemekeyNodePropertiesTestCase::testPropertyNodeSticky in ThemeKey 7
Same name and namespace in other branches
- 7.3 tests/ThemekeyNodePropertiesTestCase.test \ThemekeyNodePropertiesTestCase::testPropertyNodeSticky()
- 7.2 tests/ThemekeyNodePropertiesTestCase.test \ThemekeyNodePropertiesTestCase::testPropertyNodeSticky()
File
- tests/
ThemekeyNodePropertiesTestCase.test, line 55 - Implements tests for the theme switching rules.
Class
- ThemekeyNodePropertiesTestCase
- @file Implements tests for the theme switching rules.
Code
public function testPropertyNodeSticky() {
$node = $this
->drupalCreateNode(array(
'sticky' => TRUE,
));
$this
->simplePropertyTest('node:sticky', '=', 1, array(
'path' => 'node/' . $node->nid,
));
}