function IconPackManagerKernelTest::setUp

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Theme/Icon/IconPackManagerKernelTest.php, line 59

Class

IconPackManagerKernelTest
Tests values are from test module icon_test.

Namespace

Drupal\KernelTests\Core\Theme\Icon

Code

protected function setUp() : void {
  parent::setUp();
  $module_handler = $this->container
    ->get('module_handler');
  $theme_handler = $this->container
    ->get('theme_handler');
  $cache_backend = $this->container
    ->get('cache.default');
  $icon_extractor_plugin_manager = $this->container
    ->get('plugin.manager.icon_extractor');
  $icon_collector = $this->container
    ->get('Drupal\\Core\\Theme\\Icon\\IconCollector');
  $this->appRoot = $this->container
    ->getParameter('app.root');
  $this->pluginManagerIconPack = new IconPackManager($module_handler, $theme_handler, $cache_backend, $icon_extractor_plugin_manager, $icon_collector, $this->appRoot);
}

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