public static function GcImportTestBase::getClient in GatherContent 8.4
Same name and namespace in other branches
- 8.5 tests/src/Kernel/GcImportTestBase.php \Drupal\Tests\gathercontent\Kernel\GcImportTestBase::getClient()
Get singleton Mock client.
2 calls to GcImportTestBase::getClient()
- GcImportTestBase::getImporter in tests/
src/ Kernel/ GcImportTestBase.php - Get singleton Importer injected with mock object.
- GcImportTestBase::getProcessor in tests/
src/ Kernel/ GcImportTestBase.php - Get singleton ContentProcessor injected with mock object.
File
- tests/
src/ Kernel/ GcImportTestBase.php, line 91
Class
- GcImportTestBase
- 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;
}