function AdvisoriesTestHttpClient::__construct
Constructs an AdvisoriesTestHttpClient object.
Parameters
\GuzzleHttp\Client $client: The decorated http_client service.
File
-
core/
modules/ system/ tests/ modules/ advisory_feed_test/ src/ AdvisoriesTestHttpClient.php, line 26
Class
- AdvisoriesTestHttpClient
- Provides a decorator service for the 'http_client' service for testing.
Namespace
Drupal\advisory_feed_testCode
public function __construct(Client $client) {
$this->innerClient = $client;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.