You are here

protected function RendererCallbackTest::setUp in Drupal 8

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

Overrides RendererTestBase::setUp

File

core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php, line 21

Class

RendererCallbackTest
@coversDefaultClass \Drupal\Core\Render\Renderer @group Render @group legacy Once Renderer::doCallback() throws exceptions this will no longer be a legacy test.

Namespace

Drupal\Tests\Core\Render

Code

protected function setUp() {
  parent::setUp();
  $this->controllerResolver
    ->expects($this
    ->any())
    ->method('getControllerFromDefinition')
    ->willReturnArgument(0);
}