function ViewsUIWizardJumpMenuTestCase::createNodeRevisionAndGetPath

Helper function to create a node revision and return its expected path.

File

tests/views_ui.test, line 842

Class

ViewsUIWizardJumpMenuTestCase
Tests the ability of the wizard to create views with a jump menu style.

Code

public function createNodeRevisionAndGetPath() {
  // The node needs at least two revisions in order for Drupal to allow
  // access to the revision path.
  $settings = array(
    'revision' => TRUE,
  );
  $node = $this->drupalCreateNode($settings);
  $node->vid = NULL;
  node_save($node);
  return 'node/' . $node->nid . '/revisions/' . $node->vid . '/view';
}