You are here

public function ThemekeyNodePropertiesTestCase::testPropertyNodeVid in ThemeKey 7

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

File

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

Class

ThemekeyNodePropertiesTestCase
@file Implements tests for the theme switching rules.

Code

public function testPropertyNodeVid() {
  $node = $this
    ->drupalCreateNode();
  $node->revision = TRUE;
  node_save($node);
  $this
    ->simplePropertyTest('node:vid', '=', $node->vid, array(
    'path' => 'node/' . $node->nid . '/revision/' . $node->vid . '/view',
  ));
}