// entity type does not exist.
$config =
$this->
config('config_test.dynamic.other_module_test'
);
$this->
assertTrue($config->
isNew(), 'Default configuration for other modules is not installed if that module is not enabled.'
);
// Install the module that provides the entity type. This installs the
// default configuration.
$this->
installModule('config_test'
);
$this->
assertNotEmpty($this->
getStorage()->
load('other_module_test'
), 'Default configuration has been installed.'
);
// Uninstall the module that provides the entity type. This will remove the
// default configuration.
$this->
uninstallModule('config_test'
);
$config =
$this->
config('config_test.dynamic.other_module_test'
);
$this->
assertTrue($config->
isNew(), 'Default configuration for other modules is removed when the config entity provider is disabled.'
);
// Install the module that provides the entity type again. This installs the
// default configuration.
$this->
installModule('config_test'
);
$other_module_config_entity =
$this->
getStorage()->
load('other_module_test'
);
$this->
assertNotEmpty($other_module_config_entity, "Default configuration has been recreated."
);
// Update the default configuration to test that the changes are preserved
// if the module that provides the default configuration is uninstalled.