diff --git a/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php b/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php index d26c079..e4786ec 100644 --- a/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php @@ -24,13 +24,6 @@ class BulkDeleteTest extends FieldUnitTestBase { protected $fields; /** - * The instance to use in this test. - * - * @var array - */ - protected $instances; - - /** * The entities to use in this test. * * @var array @@ -132,7 +125,6 @@ function setUp() { parent::setUp(); $this->fields = array(); - $this->instances = array(); $this->entities = array(); $this->entities_by_bundles = array(); @@ -163,12 +155,11 @@ function setUp() { $id = 1; foreach ($this->bundles as $bundle) { foreach ($this->fields as $field) { - $instance = entity_create('field_instance', array( + entity_create('field_instance', array( 'field_name' => $field->id(), 'entity_type' => $this->entity_type, 'bundle' => $bundle, ))->save(); - $this->instances[] = $instance; } for ($i = 0; $i < 10; $i++) {