public function RendererTest::providerTestRenderCacheProperties in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::providerTestRenderCacheProperties()
Data provider for ::testRenderCacheProperties().
Return value
array An array of associative arrays of expected results keyed by property name.
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php, line 765 - Contains \Drupal\Tests\Core\Render\RendererTest.
Class
- RendererTest
- @coversDefaultClass \Drupal\Core\Render\Renderer @group Render
Namespace
Drupal\Tests\Core\RenderCode
public function providerTestRenderCacheProperties() {
return [
[
[],
],
[
[
'child1' => 0,
'child2' => 0,
'#custom_property' => 0,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 0,
'child2' => 0,
'#custom_property' => 1,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 0,
'child2' => 1,
'#custom_property' => 0,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 0,
'child2' => 1,
'#custom_property' => 1,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 1,
'child2' => 0,
'#custom_property' => 0,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 1,
'child2' => 0,
'#custom_property' => 1,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 1,
'child2' => 1,
'#custom_property' => 0,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 1,
'child2' => 1,
'#custom_property' => 1,
'#custom_property_array' => 0,
],
],
[
[
'child1' => 1,
'child2' => 1,
'#custom_property' => 1,
'#custom_property_array' => 1,
],
],
];
}