protected function RendererTest::setupThemeContainerMultiSuggestion 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::setupThemeContainerMultiSuggestion()
1 call to RendererTest::setupThemeContainerMultiSuggestion()
- RendererTest::providerTestRenderBasic in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - Provides a list of render arrays to test basic rendering.
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php, line 560 - Contains \Drupal\Tests\Core\Render\RendererTest.
Class
- RendererTest
- @coversDefaultClass \Drupal\Core\Render\Renderer @group Render
Namespace
Drupal\Tests\Core\RenderCode
protected function setupThemeContainerMultiSuggestion($matcher = NULL) {
$this->themeManager
->expects($matcher ?: $this
->at(1))
->method('render')
->with([
'container',
], $this
->anything())
->willReturnCallback(function ($theme, $vars) {
return '<div' . (string) new Attribute($vars['#attributes']) . '>' . $vars['#children'] . "</div>\n";
});
}