protected function EntityShareClientFunctionalTestBase::getCompleteTaxonomyTermInfos 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::getCompleteTaxonomyTermInfos()
Helper function.
Parameters
array $taxonomy_term_infos: The taxonomy term infos to use.
Return value
array Return common part to create taxonomy terms.
3 calls to EntityShareClientFunctionalTestBase::getCompleteTaxonomyTermInfos()
- MissingEntityReferenceTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ MissingEntityReferenceTest.php - Helper function to get a mapping of the entities data.
- MissingFieldsTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ MissingFieldsTest.php - Helper function to get a mapping of the entities data.
- TaxonomyEntityReferenceTest::getEntitiesDataArray in modules/
entity_share_client/ tests/ src/ Functional/ TaxonomyEntityReferenceTest.php - Helper function to get a mapping of the entities data.
File
- modules/
entity_share_client/ tests/ src/ Functional/ EntityShareClientFunctionalTestBase.php, line 844
Class
- EntityShareClientFunctionalTestBase
- Base class for Entity Share Client functional tests.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function getCompleteTaxonomyTermInfos(array $taxonomy_term_infos) {
return array_merge([
'vid' => [
'value' => static::$entityBundleId,
'checker_callback' => 'getTargetId',
],
'name' => [
'value' => $this
->randomString(),
'checker_callback' => 'getValue',
],
], $taxonomy_term_infos);
}