diff --git a/core/modules/system/lib/Drupal/system/Tests/Upgrade/FieldUpgradePathTest.php b/core/modules/system/lib/Drupal/system/Tests/Upgrade/FieldUpgradePathTest.php index 100dc85..d615512 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Upgrade/FieldUpgradePathTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Upgrade/FieldUpgradePathTest.php @@ -69,6 +69,10 @@ public function testEntityDisplayUpgrade() { $body_instance = field_info_instance('node', 'body', 'article'); $this->assertTrue(!isset($body_instance['display'])); + // Check that deleted fields were not added to the display. + $this->assertFalse(isset($displays['default']['content']['test_deleted_field'])); + $this->assertFalse(isset($displays['teaser']['content']['test_deleted_field'])); + // Check that the 'language' extra field is configured as expected. $expected = array( 'default' => array( @@ -108,6 +112,9 @@ public function testEntityFormDisplayUpgrade() { $body_instance = field_info_instance('node', 'body', 'article'); $this->assertTrue(!isset($body_instance['widget'])); + // Check that deleted fields were not added to the display. + $this->assertFalse(isset($form_display['content']['test_deleted_field'])); + // Check that the 'title' extra field is configured as expected. $expected = array( 'weight' => -5,