public function ClientFactoryMock::registerClient in Acquia Content Hub 8.2
Override original, and replace Conent Hub client with mock.
Overrides ClientFactory::registerClient
File
- tests/
modules/ acquia_contenthub_server_test/ src/ Client/ ClientFactoryMock.php, line 17
Class
- ClientFactoryMock
- Mocks the client factory service.
Namespace
Drupal\acquia_contenthub_server_test\ClientCode
public function registerClient(string $name, string $url, string $api_key, string $secret, string $api_version = 'v2') {
return ContentHubClientMock::register($this->loggerFactory
->get('acquia_contenthub'), $this->dispatcher, $name, $url, $api_key, $secret);
}