diff -u b/core/modules/forum/src/Tests/ForumUninstallTest.php b/core/modules/forum/src/Tests/ForumUninstallTest.php --- b/core/modules/forum/src/Tests/ForumUninstallTest.php +++ b/core/modules/forum/src/Tests/ForumUninstallTest.php @@ -140,6 +140,13 @@ $field_storage = FieldStorageConfig::loadByName('node', 'taxonomy_forums'); $this->assertNull($field_storage, 'The taxonomy_forums field storage has been deleted.'); + // Delete all terms in the Forums vocabulary. Uninstalling the form module + // will fail unless this is done. + $terms = entity_load_multiple_by_properties('taxonomy_term', array('vid' => 'forums')); + foreach($terms as $term) { + $term->delete(); + } + // Ensure that uninstallation succeeds even if the field has already been // deleted manually beforehand. $this->container->get('module_installer')->uninstall(array('forum'));