You are here

public function ClientTest::buildAuthenticator in Acquia Connector 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/AcquiaConnectorUnitTest.php \Drupal\Tests\acquia_connector\Unit\ClientTest::buildAuthenticator()
  2. 3.x tests/src/Unit/AcquiaConnectorUnitTest.php \Drupal\Tests\acquia_connector\Unit\ClientTest::buildAuthenticator()

Build authenticator to sign requests to the Acquia.

Parameters

string $key: Secret key to use for signing the request.

int $request_time: Such as from \Drupal::time()->getRequestTime().

array $params: Optional parameters to include. 'identifier' - Network Identifier.

Return value

array Authenticator array.

Overrides Client::buildAuthenticator

File

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

Class

ClientTest

Namespace

Drupal\Tests\acquia_connector\Unit

Code

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