Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c391de18
Commit
c391de18
authored
Nov 17, 2013
by
Dries
Browse files
Issue
#2125725
by Sweetchuck: Wrong XPath query in FieldUiTestBase.php.
parent
798850df
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUiTestBase.php
View file @
c391de18
...
...
@@ -83,7 +83,7 @@ function fieldUIAddNewField($bundle_path, $initial_edit, $field_edit = array(),
$this
->
assertRaw
(
t
(
'Saved %label configuration.'
,
array
(
'%label'
=>
$label
)),
'Redirected to "Manage fields" page.'
);
// Check that the field appears in the overview form.
$this
->
assertFieldByXPath
(
'//table[@id="field-overview"]//td[1]'
,
$label
,
'Field was created and appears in the overview page.'
);
$this
->
assertFieldByXPath
(
'//table[@id="field-overview"]//
tr/
td[1]'
,
$label
,
'Field was created and appears in the overview page.'
);
}
/**
...
...
@@ -109,7 +109,7 @@ function fieldUIAddExistingField($bundle_path, $initial_edit, $instance_edit = a
$this
->
assertRaw
(
t
(
'Saved %label configuration.'
,
array
(
'%label'
=>
$label
)),
'Redirected to "Manage fields" page.'
);
// Check that the field appears in the overview form.
$this
->
assertFieldByXPath
(
'//table[@id="field-overview"]//td[1]'
,
$label
,
'Field was created and appears in the overview page.'
);
$this
->
assertFieldByXPath
(
'//table[@id="field-overview"]//
tr/
td[1]'
,
$label
,
'Field was created and appears in the overview page.'
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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