protected function StableLibraryOverrideTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php \Drupal\KernelTests\Core\Theme\StableLibraryOverrideTest::setUp()
- 9 core/tests/Drupal/KernelTests/Core/Theme/StableLibraryOverrideTest.php \Drupal\KernelTests\Core\Theme\StableLibraryOverrideTest::setUp()
File
- core/
tests/ Drupal/ KernelTests/ Core/ Theme/ StableLibraryOverrideTest.php, line 57
Class
- StableLibraryOverrideTest
- Tests Stable's library overrides.
Namespace
Drupal\KernelTests\Core\ThemeCode
protected function setUp() : void {
parent::setUp();
$this->container
->get('theme_installer')
->install([
'stable',
]);
// Enable all core modules.
$this
->enableVisibleAndStableCoreModules();
$this->themeManager = $this->container
->get('theme.manager');
$this->themeInitialization = $this->container
->get('theme.initialization');
$this->libraryDiscovery = $this->container
->get('library.discovery');
}