You are here

public function ThemekeyNodePropertiesTestCase::testPropertyNodePromote in ThemeKey 7

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

File

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

Class

ThemekeyNodePropertiesTestCase
@file Implements tests for the theme switching rules.

Code

public function testPropertyNodePromote() {
  $node = $this
    ->drupalCreateNode(array(
    'promote' => TRUE,
  ));
  $this
    ->simplePropertyTest('node:promote', '=', 1, array(
    'path' => 'node/' . $node->nid,
  ));
}