function RendererTest::testRenderWithPresetAccess

Tests render with preset access.

@legacy-covers ::render @legacy-covers ::doRender

Attributes

#[DataProvider('providerAccessValues')]

File

core/tests/Drupal/Tests/Core/Render/RendererTest.php, line 604

Class

RendererTest
Tests Drupal\Core\Render\Renderer.

Namespace

Drupal\Tests\Core\Render

Code

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

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