$this->themeManager =
$this->container->
get('theme.manager'
);
$this->themeInitialization =
$this->container->
get('theme.initialization'
);
$this->libraryDiscovery =
$this->container->
get('library.discovery'
);
} /**
* Ensures that Stable 9 overrides all relevant core library assets.
*/
public function testStable9LibraryOverrides() { // First get the clean library definitions with no active theme.
$libraries_before =
$this->
getAllLibraries();
$libraries_before =
$this->
removeVendorAssets($libraries_before);
$this->themeManager->
setActiveTheme($this->themeInitialization->
getActiveThemeByName('stable9'
));
$this->libraryDiscovery->
clearCachedDefinitions();
// Now get the library definitions with Stable 9 as the active theme.
$libraries_after =
$this->
getAllLibraries();
$libraries_after =
$this->
removeVendorAssets($libraries_after);
foreach ($libraries_before as $extension =>
$libraries) { foreach ($libraries as $library_name =>
$library) { // Allow skipping libraries.