diff --git a/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php b/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php index 17d4bd7..37d18fb 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php @@ -70,8 +70,9 @@ function testCRUDFields() { /** * Tests the manage fields page. */ - 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 +332,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); } /**