You are here

protected function RegistryTest::setUp 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::setUp()

Overrides UnitTestCase::setUp

File

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

Class

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

Namespace

Drupal\Tests\Core\Theme

Code

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