function RenderElementTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ Element/ RenderElementTest.php, line 38
Class
- RenderElementTest
- @coversDefaultClass \Drupal\Core\Render\Element\RenderElementBase[[api-linebreak]] @group Render
Namespace
Drupal\Tests\Core\Render\ElementCode
protected function setUp() : void {
parent::setUp();
$this->requestStack = new RequestStack();
$this->container = new ContainerBuilder();
$this->container
->set('request_stack', $this->requestStack);
\Drupal::setContainer($this->container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.