diff -u b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php --- b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php +++ b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php @@ -75,6 +75,13 @@ \Drupal::service('module_installer')->install(['views']); ViewTestData::createTestViews(get_class($this), ['field_test_views']); + $view = View::load('test_view_field_delete'); + $this->assertNotNull($view); + $this->assertTrue($view->status()); + // Test that the View depends on the field. + $dependencies = $view->getDependencies() + ['config' => []]; + $this->assertTrue(in_array("field.storage.node.$field_name", $dependencies['config'])); + // Check the config dependencies of the first field, the field storage must // not be shown as being deleted yet. $this->drupalGet("$bundle_path1/fields/node.$type_name1.$field_name/delete");