You are here

protected function AttachedAssetsTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php \Drupal\KernelTests\Core\Asset\AttachedAssetsTest::setUp()
  2. 10 core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php \Drupal\KernelTests\Core\Asset\AttachedAssetsTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php, line 46

Class

AttachedAssetsTest
Tests #attached assets: attached asset libraries and JavaScript settings.

Namespace

Drupal\KernelTests\Core\Asset

Code

protected function setUp() {
  parent::setUp();
  $this->container
    ->get('router.builder')
    ->rebuild();
  $this->assetResolver = $this->container
    ->get('asset.resolver');
  $this->renderer = $this->container
    ->get('renderer');
}