$data =
$optional_config_storage->
read($config_name);
$dependency =
new ConfigEntityDependency($config_name,
$data);
$modules_to_install =
array_merge($modules_to_install,
$dependency->
getDependencies('module'
));
$themes_to_install =
array_merge($themes_to_install,
$dependency->
getDependencies('theme'
));
} // Remove core and standard because they cannot be installed.
$modules_to_install =
array_diff(array_unique($modules_to_install),
['core', 'standard'
]);
$this->container->
get('module_installer'
)->
install($modules_to_install);
$this->container->
get('theme_installer'
)->
install(array_unique($themes_to_install));
// Test configuration in the extension's config/install directory.
$this->
doTestsOnConfigStorage($extension_config_storage,
$name,
$type);
// Test configuration in the extension's config/optional directory.
$this->
doTestsOnConfigStorage($optional_config_storage,
$name,
$type);
} /**
* A data provider that lists every theme in core.
*
* Also adds a deprecated theme with config.
*
* @return string[][]
* An array of theme names to test, with both key and value being the name
* of the theme.
*/