You are here

public function TestHttpClientWrapper::__construct in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Tests/TestHttpClientWrapper.php \Drupal\salesforce\Tests\TestHttpClientWrapper::__construct()

HttpClientWrapper constructor.

Parameters

\GuzzleHttp\ClientInterface $httpClient: Guzzle HTTP client service, from core http_client.

File

src/Tests/TestHttpClientWrapper.php, line 27

Class

TestHttpClientWrapper
Wraps Guzzle HTTP client for an OAuth ClientInterface.

Namespace

Drupal\salesforce\Tests

Code

public function __construct(GuzzleClientInterface $httpClient) {
  $this->httpClient = $httpClient;
}