class TestHttpClient in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Tests/TestHttpClient.php \Drupal\salesforce\Tests\TestHttpClient
- 5.0.x src/Tests/TestHttpClient.php \Drupal\salesforce\Tests\TestHttpClient
Empty http client.
Hierarchy
- class \Drupal\salesforce\Tests\TestHttpClient extends \GuzzleHttp\Client
Expanded class hierarchy of TestHttpClient
See also
tests/modules/salesforce_test_rest_client
File
- src/
Tests/ TestHttpClient.php, line 13
Namespace
Drupal\salesforce\TestsView source
class TestHttpClient extends Client {
/**
* We need to override the post() method in order to fake our OAuth process.
*/
public function post($url, $headers) {
return new Response();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestHttpClient:: |
public | function | We need to override the post() method in order to fake our OAuth process. |