protected function TaxonomyEntityReferenceTest::populateRequestService in Entity Share 8.2
Same name and namespace in other branches
- 8.3 modules/entity_share_client/tests/src/Functional/TaxonomyEntityReferenceTest.php \Drupal\Tests\entity_share_client\Functional\TaxonomyEntityReferenceTest::populateRequestService()
Helper function to populate the request service with responses.
Overrides EntityShareClientFunctionalTestBase::populateRequestService
File
- modules/
entity_share_client/ tests/ src/ Functional/ TaxonomyEntityReferenceTest.php, line 114
Class
- TaxonomyEntityReferenceTest
- Functional test class for taxonomy entity reference field.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function populateRequestService() {
parent::populateRequestService();
$this->jsonapiHelper
->setRemote($this->remote);
$http_client = $this->remoteManager
->prepareJsonApiClient($this->remote);
// Needs to make the requests when only the referencing content will be
// required.
$selected_entities = [
'es_test_taxonomy_reference',
];
$prepared_url = $this
->prepareUrlFilteredOnUuids($selected_entities, 'node_es_test_en');
$this
->discoverJsonApiEndpoints($http_client, $prepared_url);
}