salesforce-8.x-4.x-dev/src/Tests/TestHttpClient.php

src/Tests/TestHttpClient.php
<?php

namespace Drupal\salesforce\Tests;

use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;

/**
 * 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($uri, array $options = []): ResponseInterface {
    return new Response();
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc