protected function assertDefaultConfig(StorageInterface
$default_config_storage, StorageInterface
$active_config_storage): void
{ /** @var \Drupal\Core\Config\ConfigManagerInterface $config_manager */
$config_manager =
$this->container->
get('config.manager'
);
foreach ($default_config_storage->
listAll() as $config_name) { if ($active_config_storage->
exists($config_name)) { $result =
$config_manager->
diff($default_config_storage,
$active_config_storage,
$config_name);
$this->
assertConfigDiff($result,
$config_name,
[ // The filter.format.*:roles key is a special install key.
'filter.format.basic_html' =>
['roles:', ' - authenticated'
],
'filter.format.full_html' =>
['roles:', ' - administrator'
],
'filter.format.restricted_html' =>
['roles:', ' - anonymous'
],
// The system.site config is overwritten during tests by
// FunctionalTestSetupTrait::installParameters().
'system.site' =>
['uuid:', 'name:', 'mail:'
],
]);
} else { $this->
fail("
$config_name has not been installed"
);
}