Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f92f05c1
Commit
f92f05c1
authored
Jul 20, 2013
by
Alex Pott
Browse files
Issue
#2040369
by xjm: Fixed The Views UI tour is broken.
parent
c25950fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/views_ui/config/tour.tour.views-ui.yml
View file @
f92f05c1
...
...
@@ -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
...
...
core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewsUITourTest.php
0 → 100644
View file @
f92f05c1
<?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.'
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment