You are here

public function RendererPlaceholdersTest::testCreatePlaceholderPropertyWithoutLazyBuilder in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php \Drupal\Tests\Core\Render\RendererPlaceholdersTest::testCreatePlaceholderPropertyWithoutLazyBuilder()

@covers ::render @covers ::doRender

@expectedException \LogicException @expectedExceptionMessage When #create_placeholder is set, a #lazy_builder callback must be present as well.

File

core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php, line 920
Contains \Drupal\Tests\Core\Render\RendererPlaceholdersTest.

Class

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

Namespace

Drupal\Tests\Core\Render

Code

public function testCreatePlaceholderPropertyWithoutLazyBuilder() {
  $element = [];
  $element['#create_placeholder'] = TRUE;
  $this->renderer
    ->renderRoot($element);
}