You are here

protected function EntityShareClientFunctionalTestBase::getCompleteTaxonomyTermInfos in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 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.

2 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.
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 654

Class

EntityShareClientFunctionalTestBase
Base class for Entity share server functional tests.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

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);
}