diff --git a/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php index 33538f5..59036fd 100644 --- a/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php +++ b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php @@ -204,7 +204,7 @@ public function testFieldComponent() { * Tests the behavior of a field component for a base field. */ public function testBaseFieldComponent() { - $display = entity_create('entity_display', array( + $display = entity_create('entity_view_display', array( 'targetEntityType' => 'entity_test_base_field_display', 'bundle' => 'entity_test_base_field_display', 'mode' => 'default', @@ -243,7 +243,7 @@ public function testBaseFieldComponent() { $this->assertFalse(isset($data['hidden']['test_display_non_configurable'])); // Check that defaults are correctly filled when loading the display. - $display = entity_load('entity_display', $display->id()); + $display = entity_load('entity_view_display', $display->id()); foreach ($expected as $field_name => $options) { $this->assertEqual($display->getComponent($field_name), $options); } @@ -253,7 +253,7 @@ public function testBaseFieldComponent() { $data['content']['test_display_non_configurable'] = $expected['test_display_non_configurable']; $data['content']['test_display_non_configurable']['weight']++; $config->setData($data)->save(); - $display = entity_load('entity_display', $display->id()); + $display = entity_load('entity_view_display', $display->id()); foreach ($expected as $field_name => $options) { $this->assertEqual($display->getComponent($field_name), $options); }