public static function GcMigrateTestBase::getClient in GatherContent 8.5
Get singleton Mock client.
File
- tests/
src/ Kernel/ GcMigrateTestBase.php, line 50
Class
- GcMigrateTestBase
- Base class for import kernel tests.
Namespace
Drupal\Tests\gathercontent\KernelCode
public static function getClient() {
static $client = NULL;
if ($client === NULL) {
$client = new MockDrupalGatherContentClient(\Drupal::service('http_client'));
}
return $client;
}