TestHttpClient.php in Salesforce Suite 8.3
Same filename and directory in other branches
Namespace
Drupal\salesforce\TestsFile
src/Tests/TestHttpClient.phpView source
<?php
namespace Drupal\salesforce\Tests;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Response;
/**
* Empty http client.
*
* @see tests/modules/salesforce_test_rest_client
*/
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();
}
}
Classes
Name | Description |
---|---|
TestHttpClient | Empty http client. |