function RendererCallbackTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php \Drupal\Tests\Core\Render\RendererCallbackTest::setUp()
  2. 8.9.x core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php \Drupal\Tests\Core\Render\RendererCallbackTest::setUp()
  3. 10 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 18

Class

RendererCallbackTest
@coversDefaultClass \Drupal\Core\Render\Renderer @group Render

Namespace

Drupal\Tests\Core\Render

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.