$block_content =
['#markup' => 'The block content.'
];
$block->
build()->
willReturn($block_content);
$this->blockManager->
createInstance('some_block_id',
['id' => 'some_block_id'
])->
willReturn($block->
reveal());
$component =
new SectionComponent('some-uuid', 'some-region',
['id' => 'some_block_id'
]);
$in_preview = FALSE;
$event =
new SectionComponentBuildRenderArrayEvent($component,
$contexts,
$in_preview);
$subscriber =
new BlockComponentRenderArray($this->account->
reveal());
$translation =
$this->
prophesize(TranslationInterface::
class);
$translation->
translateString(Argument::
type(TranslatableMarkup::
class)) ->
willReturn($placeholder_label);
$subscriber->
setStringTranslation($translation->
reveal());
$expected_build =
[ '#theme' => 'block',
'#weight' => 0,
'#configuration' =>
[],
'#plugin_id' => 'block_plugin_id',
'#base_plugin_id' => 'block_plugin_id',
'#derivative_plugin_id' => NULL,
'content' =>
$block_content,