protected function EntityShareClientFunctionalTestBase::getCompleteNodeInfos in Entity Share 8.2
Same name and namespace in other branches
- 8.3 modules/entity_share_client/tests/src/Functional/EntityShareClientFunctionalTestBase.php \Drupal\Tests\entity_share_client\Functional\EntityShareClientFunctionalTestBase::getCompleteNodeInfos()
Helper function.
Parameters
array $node_infos: The node infos to use.
Return value
array Return common part to create nodes.
18 calls to EntityShareClientFunctionalTestBase::getCompleteNodeInfos()
- BasicFieldsTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ BasicFieldsTest.php - Helper function to get a mapping of the entities data.
- BcTimestampNormalizerUnixTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ BcTimestampNormalizerUnixTest.php - Helper function to get a mapping of the entities data.
- BlockFieldTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ BlockFieldTest.php - Helper function to get a mapping of the entities data.
- ChangedRemovedTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ ChangedRemovedTest.php - Helper function to get a mapping of the entities data.
- CliTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ CliTest.php - Helper function to get a mapping of the entities data.
File
- modules/
entity_share_client/ tests/ src/ Functional/ EntityShareClientFunctionalTestBase.php, line 632
Class
- EntityShareClientFunctionalTestBase
- Base class for Entity share server functional tests.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function getCompleteNodeInfos(array $node_infos) {
return array_merge([
'type' => [
'value' => static::$entityBundleId,
'checker_callback' => 'getTargetId',
],
'title' => [
'value' => $this
->randomString(),
'checker_callback' => 'getValue',
],
], $node_infos);
}