function ElementInfoManagerTest::setUp
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::setUp()
- 10 core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php \Drupal\Tests\Core\Render\ElementInfoManagerTest::setUp()
- 11.x 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
Class
- ElementInfoManagerTest
- @coversDefaultClass \Drupal\Core\Render\ElementInfoManager @group Render
Namespace
Drupal\Tests\Core\RenderCode
protected function setUp() : void {
parent::setUp();
$this->cache = $this->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
$this->cacheTagsInvalidator = $this->createMock('Drupal\\Core\\Cache\\CacheTagsInvalidatorInterface');
$this->moduleHandler = $this->createMock('Drupal\\Core\\Extension\\ModuleHandlerInterface');
$this->themeManager = $this->createMock('Drupal\\Core\\Theme\\ThemeManagerInterface');
$this->elementInfo = new ElementInfoManager(new \ArrayObject(), $this->cache, $this->cacheTagsInvalidator, $this->moduleHandler, $this->themeManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.