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