protected function RendererTest::setupThemeContainerMultiSuggestion in Drupal 8
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 742 - 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";
});
}