protected function RegistryLegacyTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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 70
Class
- RegistryLegacyTest
- @coversDefaultClass \Drupal\Core\Theme\Registry @group Theme @group legacy
Namespace
Drupal\Tests\Core\ThemeCode
protected function setUp() {
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->themeManager = $this
->createMock('Drupal\\Core\\Theme\\ThemeManagerInterface');
$this
->setupTheme();
}