You are here

class ClientTest in Acquia Connector 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/AcquiaConnectorUnitTest.php \Drupal\Tests\acquia_connector\Unit\ClientTest
  2. 8 tests/src/Unit/AcquiaConnectorUnitTest.php \Drupal\Tests\acquia_connector\Unit\ClientTest

Hierarchy

Expanded class hierarchy of ClientTest

File

tests/src/Unit/AcquiaConnectorUnitTest.php, line 78
Contains \Drupal\Tests\acquia_connector\Unit\AcquiaConnectorUnitTest.

Namespace

Drupal\Tests\acquia_connector\Unit
View source
class ClientTest extends Client {

  /**
   * Construction method.
   */
  public function __construct() {
  }

  /**
   * {@inheritdoc}
   */
  public function buildAuthenticator($key, int $request_time, array $params = []) {
    $authenticator = parent::buildAuthenticator($key, $request_time, $params);
    return $authenticator;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Client::$client protected property The HTTP client to fetch the feed data with.
Client::$config protected property Config Factory Interface.
Client::$configFactory protected property The config factory.
Client::$headers protected property Request headers.
Client::$server protected property Acquia SPI server.
Client::$state protected property The state service.
Client::getDefinition public function Get SPI definition.
Client::getNonce protected function Get a random base 64 encoded string.
Client::getSearchModulesData protected function Get information on Acquia Search modules.
Client::getSubscription public function Get Acquia subscription from Acquia.
Client::getSubscriptionCredentials public function Get account settings to use for creating request authorizations.
Client::hash protected function Calculates a HMAC-SHA1 according to RFC2104.
Client::nspiCall public function Prepare and send a REST request to Acquia with an authenticator.
Client::request protected function Create and send a request.
Client::sendNspi public function Get Acquia subscription from Acquia.
Client::validateResponse protected function Validate the response authenticator.
ClientTest::buildAuthenticator public function Build authenticator to sign requests to the Acquia. Overrides Client::buildAuthenticator
ClientTest::__construct public function Construction method. Overrides Client::__construct
LoggerChannelTrait::$loggerFactory protected property The logger channel factory service.
LoggerChannelTrait::getLogger protected function Gets the logger for a specific channel.
LoggerChannelTrait::setLoggerFactory public function Injects the logger channel factory.
MessengerTrait::$messenger protected property The messenger. 27
MessengerTrait::messenger public function Gets the messenger. 27
MessengerTrait::setMessenger public function Sets the messenger.
StringTranslationTrait::$stringTranslation protected property The string translation service. 4
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.