public function TestHttpClient::post in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Tests/TestHttpClient.php \Drupal\salesforce\Tests\TestHttpClient::post()
- 5.0.x src/Tests/TestHttpClient.php \Drupal\salesforce\Tests\TestHttpClient::post()
We need to override the post() method in order to fake our OAuth process.
File
- src/
Tests/ TestHttpClient.php, line 18
Class
- TestHttpClient
- Empty http client.
Namespace
Drupal\salesforce\TestsCode
public function post($url, $headers) {
return new Response();
}