You are here

protected function ElementInfoManagerTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::setUp()

@covers ::__construct

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php, line 60
Contains \Drupal\Tests\Core\Render\ElementInfoManagerTest.

Class

ElementInfoManagerTest
@coversDefaultClass \Drupal\Core\Render\ElementInfoManager @group Render

Namespace

Drupal\Tests\Core\Render

Code

protected function setUp() {
  $this->cache = $this
    ->getMock('Drupal\\Core\\Cache\\CacheBackendInterface');
  $this->cacheTagsInvalidator = $this
    ->getMock('Drupal\\Core\\Cache\\CacheTagsInvalidatorInterface');
  $this->moduleHandler = $this
    ->getMock('Drupal\\Core\\Extension\\ModuleHandlerInterface');
  $this->themeManager = $this
    ->getMock('Drupal\\Core\\Theme\\ThemeManagerInterface');
  $this->elementInfo = new ElementInfoManager(new \ArrayObject(), $this->cache, $this->cacheTagsInvalidator, $this->moduleHandler, $this->themeManager);
}