You are here

class TestHttpClient in Salesforce Suite 8.4

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

Namesort descending Modifiers Type Description Overrides
TestHttpClient::post public function We need to override the post() method in order to fake our OAuth process.