diff --git a/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php index 31ea4e8..5880eaf 100644 --- a/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php +++ b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php @@ -43,15 +43,15 @@ public function testEntityDisplayCRUD() { // Check that providing no 'weight' results in the highest current weight // being assigned. - $expected['component_1'] = array('weight' => 0); - $expected['component_2'] = array('weight' => 1); + $expected['component_1'] = array('weight' => 0, 'settings' => array()); + $expected['component_2'] = array('weight' => 1, 'settings' => array()); $display->setComponent('component_1'); $display->setComponent('component_2'); $this->assertEqual($display->getComponent('component_1'), $expected['component_1']); $this->assertEqual($display->getComponent('component_2'), $expected['component_2']); // Check that arbitrary options are correctly stored. - $expected['component_3'] = array('weight' => 10, 'foo' => 'bar'); + $expected['component_3'] = array('weight' => 10, 'foo' => 'bar', 'settings' => array()); $display->setComponent('component_3', $expected['component_3']); $this->assertEqual($display->getComponent('component_3'), $expected['component_3']); @@ -105,7 +105,7 @@ public function testEntityGetDisplay() { $display = entity_get_display('entity_test', 'entity_test', 'default'); $this->assertFalse($display->isNew()); $this->assertEqual($display->id, 'entity_test.entity_test.default'); - $this->assertEqual($display->getComponent('component_1'), array('weight' => 10)); + $this->assertEqual($display->getComponent('component_1'), array('weight' => 10, 'settings' => array())); } /** @@ -128,7 +128,7 @@ public function testExtraFieldComponent() { $display->removeComponent('display_extra_field'); $display->setComponent('display_extra_field_hidden', array('weight' => 10)); $this->assertNull($display->getComponent('display_extra_field')); - $this->assertEqual($display->getComponent('display_extra_field_hidden'), array('weight' => 10)); + $this->assertEqual($display->getComponent('display_extra_field_hidden'), array('weight' => 10, 'settings' => array())); } /** diff --git a/core/modules/entity/lib/Drupal/entity/Tests/EntityFormDisplayTest.php b/core/modules/entity/lib/Drupal/entity/Tests/EntityFormDisplayTest.php index eb0477f..d0bde2b 100644 --- a/core/modules/entity/lib/Drupal/entity/Tests/EntityFormDisplayTest.php +++ b/core/modules/entity/lib/Drupal/entity/Tests/EntityFormDisplayTest.php @@ -46,7 +46,7 @@ public function testEntityGetFromDisplay() { $form_display = entity_get_form_display('entity_test', 'entity_test', 'default'); $this->assertFalse($form_display->isNew()); $this->assertEqual($form_display->id, 'entity_test.entity_test.default'); - $this->assertEqual($form_display->getComponent('component_1'), array('weight' => 10)); + $this->assertEqual($form_display->getComponent('component_1'), array('weight' => 10, 'settings' => array())); } /**