function ResolvedLibraryDefinitionsFilesMatchTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php \Drupal\KernelTests\Core\Asset\ResolvedLibraryDefinitionsFilesMatchTest::setUp()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php \Drupal\KernelTests\Core\Asset\ResolvedLibraryDefinitionsFilesMatchTest::setUp()
  3. 10 core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php \Drupal\KernelTests\Core\Asset\ResolvedLibraryDefinitionsFilesMatchTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Asset/ResolvedLibraryDefinitionsFilesMatchTest.php, line 99

Class

ResolvedLibraryDefinitionsFilesMatchTest
Tests that the asset files for all core libraries exist.

Namespace

Drupal\KernelTests\Core\Asset

Code

protected function setUp() : void {
    parent::setUp();
    // Install all core themes.
    sort($this->allThemes);
    $this->container
        ->get('theme_installer')
        ->install($this->allThemes);
    $this->themeHandler = $this->container
        ->get('theme_handler');
    $this->themeInitialization = $this->container
        ->get('theme.initialization');
    $this->themeManager = $this->container
        ->get('theme.manager');
    $this->libraryDiscovery = $this->container
        ->get('library.discovery');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.