Commit f92f05c1 authored by alexpott's avatar alexpott

Issue #2040369 by xjm: Fixed The Views UI tour is broken.

parent c25950fe
......@@ -3,7 +3,7 @@ module: views_ui
label: Views ui
langcode: en
paths:
- admin/structure/views/view/*/edit
- admin/structure/views/view/*
tips:
views-ui-active-display:
id: views-ui-active-display
......
<?php
/**
* @file
* Contains \Drupal\views_ui\Tests\ViewsUITourTest.
*/
namespace Drupal\views_ui\Tests;
use Drupal\Core\Language\Language;
use Drupal\simpletest\WebTestBase;
/**
* Tests tour functionality.
*/
class ViewsUITourTest extends UITestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array('tour');
/**
* Views used by this test.
*
* @var array
*/
public static $testViews = array('test_view');
public static function getInfo() {
return array(
'name' => 'Views UI tour tests',
'description' => 'Tests the Views UI tour.',
'group' => 'Tour',
);
}
protected function setUp() {
parent::setUp();
$this->drupalLogin($this->drupalCreateUser(array('access tour', 'administer views')));
}
/**
* Tests the Views UI tour.
*/
public function testTourFunctionality() {
$this->drupalGet('admin/structure/views/view/test_view');
$elements = $this->xpath('//ol[@id="tour"]');
$this->assertEqual(count($elements), 1, 'Found a tour on the test 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