You are here

TestHttpClient.php in Salesforce Suite 8.3

Same filename and directory in other branches
  1. 8.4 src/Tests/TestHttpClient.php
  2. 5.0.x src/Tests/TestHttpClient.php

File

src/Tests/TestHttpClient.php
View 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

Namesort descending Description
TestHttpClient Empty http client.