1 views_ui.test | ViewsUIWizardJumpMenuTestCase::createNodeRevisionAndGetPath() |
Helper function to create a node revision and return its expected path.
File
- core/
modules/ views/ tests/ views_ui.test, line 728 - Tests Views UI Wizard.
Class
- ViewsUIWizardJumpMenuTestCase
- Tests the ability of the views wizard to create views with a jump menu style plugin.
Code
function createNodeRevisionAndGetPath() {
// The node needs at least two revisions in order for Backdrop to allow
// access to the revision path.
$settings = array('revision' => TRUE);
$node = $this->backdropCreateNode($settings);
$node->vid = NULL;
node_save($node);
return 'node/' . $node->nid . '/revisions/' . $node->vid . '/view';
}