You are here

protected function RegistryTest::setupTheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Theme/RegistryTest.php \Drupal\Tests\Core\Theme\RegistryTest::setupTheme()
2 calls to RegistryTest::setupTheme()
RegistryTest::setUp in core/tests/Drupal/Tests/Core/Theme/RegistryTest.php
RegistryTest::testGetRegistryForModule in core/tests/Drupal/Tests/Core/Theme/RegistryTest.php
Tests getting the theme registry defined by a module.

File

core/tests/Drupal/Tests/Core/Theme/RegistryTest.php, line 137
Contains \Drupal\Tests\Core\Theme\RegistryTest.

Class

RegistryTest
@coversDefaultClass \Drupal\Core\Theme\Registry @group Theme

Namespace

Drupal\Tests\Core\Theme

Code

protected function setupTheme($theme_name = NULL) {
  $this->registry = new TestRegistry($this->root, $this->cache, $this->lock, $this->moduleHandler, $this->themeHandler, $this->themeInitialization, $theme_name);
  $this->registry
    ->setThemeManager($this->themeManager);
}