function RendererTest::testRenderWithPresetAccess
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testRenderWithPresetAccess()
- 8.9.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testRenderWithPresetAccess()
- 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 552
Class
- RendererTest
- @coversDefaultClass \Drupal\Core\Render\Renderer @group Render
Namespace
Drupal\Tests\Core\RenderCode
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.