diff --git a/core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUITourTest.php b/core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUITourTest.php index 35f615e..a5fb963 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUITourTest.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUITourTest.php @@ -32,7 +32,7 @@ class FieldUITourTest extends TourTestBase { * * @var array */ - public static $modules = array('node', 'field', 'field_sql_storage', 'field_ui', 'tour', 'text'); + public static $modules = array('node', 'field', 'field_ui', 'tour', 'text'); public static function getInfo() { return array( @@ -62,9 +62,11 @@ protected function setUp() { $type_name = strtolower($this->randomName(8)) . '_test'; $this->drupalCreateContentType(array('name' => $type_name, 'type' => $type_name)); + $machine_name = 'field_' . drupal_strtolower($this->randomName()); // Create a field instance so we can check the add existing field tip. $field = entity_create('field_entity', array( - 'field_name' => drupal_strtolower($this->randomName()), + 'name' => $machine_name, + 'entity_type' => 'node', 'type' => 'text', 'settings' => array( 'max_length' => '255', @@ -73,8 +75,9 @@ protected function setUp() { $field->save(); entity_create('field_instance', array( - 'field_name' => $field->id(), + 'field_name' => $machine_name, 'entity_type' => 'node', + 'label' => $this->randomString(), 'bundle' => $type_name, ))->save();