protected function EntityShareClientFunctionalTestBase::getCompleteBlockInfos in Entity Share 8.3
Same name and namespace in other branches
- 8.2 modules/entity_share_client/tests/src/Functional/EntityShareClientFunctionalTestBase.php \Drupal\Tests\entity_share_client\Functional\EntityShareClientFunctionalTestBase::getCompleteBlockInfos()
Helper function.
Parameters
array $block_infos: The block infos to use.
Return value
array Return common part to create blocks.
1 call to EntityShareClientFunctionalTestBase::getCompleteBlockInfos()
- BlockFieldTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ BlockFieldTest.php - Helper function to get a mapping of the entities data.
File
- modules/
entity_share_client/ tests/ src/ Functional/ EntityShareClientFunctionalTestBase.php, line 884
Class
- EntityShareClientFunctionalTestBase
- Base class for Entity Share Client functional tests.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function getCompleteBlockInfos(array $block_infos) {
return array_merge([
'type' => [
'value' => 'es_test',
'checker_callback' => 'getTargetId',
],
'info' => [
'value' => $this
->randomString(),
'checker_callback' => 'getValue',
],
], $block_infos);
}