|
|
|
|
@ -62,14 +62,14 @@ final class RegionViewBuilderTest extends AbstractTestCase {
|
|
|
|
|
|
|
|
|
|
$build = $view_builder->build('sidebar_first'); |
|
|
|
|
// The build should be empty because 'stark' is not a default theme. |
|
|
|
|
$expected_build = [ |
|
|
|
|
$expected_sidebar_first = [ |
|
|
|
|
'#cache' => [ |
|
|
|
|
'contexts' => [], |
|
|
|
|
'tags' => ['config:block_list'], |
|
|
|
|
'max-age' => Cache::PERMANENT, |
|
|
|
|
], |
|
|
|
|
]; |
|
|
|
|
self::assertSame($expected_build, $build); |
|
|
|
|
self::assertSame($expected_sidebar_first, $build); |
|
|
|
|
|
|
|
|
|
// Specify the theme name explicitly. |
|
|
|
|
$build = $view_builder->build('sidebar_first', 'stark'); |
|
|
|
|
@ -137,7 +137,7 @@ final class RegionViewBuilderTest extends AbstractTestCase {
|
|
|
|
|
->save(); |
|
|
|
|
|
|
|
|
|
$build = $view_builder->build('sidebar_first'); |
|
|
|
|
self::assertRenderArray($expected_build, $build); |
|
|
|
|
self::assertRenderArray($expected_sidebar_first, $build); |
|
|
|
|
|
|
|
|
|
Html::resetSeenIds(); |
|
|
|
|
$actual_html = $renderer->renderPlain($expected_build); |
|
|
|
|
|