Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
1149786d
Commit
1149786d
authored
Nov 26, 2012
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1375452
follow-up by swentel: Test improvements for renaming fields.
parent
048717a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php
...s/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php
+7
-4
No files found.
core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php
View file @
1149786d
...
...
@@ -69,9 +69,13 @@ function testCRUDFields() {
/**
* Tests the manage fields page.
*
* @param string $type
* (optional) The name of a content type.
*/
function
manageFieldsPage
()
{
$this
->
drupalGet
(
'admin/structure/types/manage/'
.
$this
->
type
.
'/fields'
);
function
manageFieldsPage
(
$type
=
''
)
{
$type
=
empty
(
$type
)
?
$this
->
type
:
$type
;
$this
->
drupalGet
(
'admin/structure/types/manage/'
.
$type
.
'/fields'
);
// Check all table columns.
$table_headers
=
array
(
t
(
'Label'
),
...
...
@@ -331,8 +335,7 @@ function testRenameBundle() {
'type'
=>
$type2
,
);
$this
->
drupalPost
(
'admin/structure/types/manage/'
.
$this
->
type
,
$options
,
t
(
'Save content type'
));
$this
->
drupalGet
(
'admin/structure/types/manage/'
.
$type2
.
'/fields'
);
$this
->
manageFieldsPage
(
$type2
);
}
/**
...
...
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