function RegistryLegacyTest::setUp

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Theme/RegistryLegacyTest.php \Drupal\Tests\Core\Theme\RegistryLegacyTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Theme/RegistryLegacyTest.php, line 85

Class

RegistryLegacyTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Theme%21Registry.php/class/Registry/9" title="Defines the theme registry service." class="local">\Drupal\Core\Theme\Registry</a> @group Theme @group legacy

Namespace

Drupal\Tests\Core\Theme

Code

protected function setUp() : void {
    parent::setUp();
    $this->cache = $this->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
    $this->lock = $this->createMock('Drupal\\Core\\Lock\\LockBackendInterface');
    $this->moduleHandler = $this->createMock('Drupal\\Core\\Extension\\ModuleHandlerInterface');
    $this->themeHandler = $this->createMock('Drupal\\Core\\Extension\\ThemeHandlerInterface');
    $this->themeInitialization = $this->createMock('Drupal\\Core\\Theme\\ThemeInitializationInterface');
    $this->runtimeCache = $this->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
    $this->themeManager = $this->createMock('Drupal\\Core\\Theme\\ThemeManagerInterface');
    $this->moduleList = $this->createMock(ModuleExtensionList::class);
    $this->setupTheme();
}

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