diff --git a/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php index 8ab9ebb..f2f7b54 100644 --- a/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php +++ b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php @@ -198,6 +198,11 @@ function testUninstallReinstall() { ); entity_create('field_config', $field_definition)->save(); + // Remove the third party setting from the memory copy of the vocabulary. + // We keep this invalid copy around while the taxonomy module is not even + // installed for testing below. + $this->vocabulary->unsetThirdPartySetting('taxonomy_crud', 'foo'); + require_once \Drupal::root() . '/core/includes/install.inc'; $this->container->get('module_installer')->uninstall(array('taxonomy')); $this->container->get('module_installer')->install(array('taxonomy'));