diff --git a/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php index abf7a42..50f4fc3 100644 --- a/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php +++ b/core/modules/entity/lib/Drupal/entity/Tests/EntityDisplayTest.php @@ -259,14 +259,14 @@ public function testDeleteFieldInstance() { entity_create('entity_display', array( 'targetEntityType' => 'entity_test', 'bundle' => 'entity_test', - 'viewMode' => 'default', + 'mode' => 'default', ))->setComponent($field_name)->save(); // Create teaser entity display. entity_create('entity_display', array( 'targetEntityType' => 'entity_test', 'bundle' => 'entity_test', - 'viewMode' => 'teaser', + 'mode' => 'teaser', ))->setComponent($field_name)->save(); $display = entity_get_display('entity_test', 'entity_test', 'default');