protected function AttachedAssetsTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Common/AttachedAssetsTest.php \Drupal\system\Tests\Common\AttachedAssetsTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ src/ Tests/ Common/ AttachedAssetsTest.php, line 52 - Contains \Drupal\system\Tests\Common\AttachedAssetsTest.
Class
- AttachedAssetsTest
- Tests #attached assets: attached asset libraries and JavaScript settings.
Namespace
Drupal\system\Tests\CommonCode
protected function setUp() {
parent::setUp();
$this
->installSchema('system', array(
'router',
));
$this->container
->get('router.builder')
->rebuild();
$this->assetResolver = $this->container
->get('asset.resolver');
$this->renderer = $this->container
->get('renderer');
}