You are here

public function RendererTest::testRenderWithPresetAccess in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testRenderWithPresetAccess()
  2. 10 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testRenderWithPresetAccess()

@covers ::render @covers ::doRender

@dataProvider providerAccessValues

File

core/tests/Drupal/Tests/Core/Render/RendererTest.php, line 534
Contains \Drupal\Tests\Core\Render\RendererTest.

Class

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

Namespace

Drupal\Tests\Core\Render

Code

public function testRenderWithPresetAccess($access) {
  $build = [
    '#access' => $access,
  ];
  $this
    ->assertAccess($build, $access);
}