You are here

public function TestHttpClient::post in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Tests/TestHttpClient.php \Drupal\salesforce\Tests\TestHttpClient::post()
  2. 8.3 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\Tests

Code

public function post($url, $headers) {
  return new Response();
}