Commit 50d849f8 authored by tim.plunkett's avatar tim.plunkett
Browse files

Jump menu fail.

parent 538f570f
...@@ -70,6 +70,10 @@ function testJumpMenus() { ...@@ -70,6 +70,10 @@ function testJumpMenus() {
// The urls are built with :: to be able to have a unique path all the time, // The urls are built with :: to be able to have a unique path all the time,
// so try to find out the real path of $edit. // so try to find out the real path of $edit.
$view_object = views_get_view($view['name']); $view_object = views_get_view($view['name']);
if (!$view_object) {
$this->fail('The view could not be loaded.');
return;
}
$view_object->preview('page'); $view_object->preview('page');
$form = $view_object->style_plugin->render(); $form = $view_object->style_plugin->render();
$jump_options = $form['jump']['#options']; $jump_options = $form['jump']['#options'];
...@@ -169,4 +173,3 @@ function createNodeRevisionAndGetPath() { ...@@ -169,4 +173,3 @@ function createNodeRevisionAndGetPath() {
return 'node/' . $node->nid . '/revisions/' . $node->vid . '/view'; return 'node/' . $node->nid . '/revisions/' . $node->vid . '/view';
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment