protected function RenderElementTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Render/Element/RenderElementTest.php \Drupal\Tests\Core\Render\Element\RenderElementTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ Element/ RenderElementTest.php, line 41 - Contains \Drupal\Tests\Core\Render\Element\RenderElementTest.
Class
- RenderElementTest
- @coversDefaultClass \Drupal\Core\Render\Element\RenderElement @group Render
Namespace
Drupal\Tests\Core\Render\ElementCode
protected function setUp() {
parent::setUp();
$this->requestStack = new RequestStack();
$this->container = new ContainerBuilder();
$this->container
->set('request_stack', $this->requestStack);
\Drupal::setContainer($this->container);
}