You are here

public static function GcImportTestBase::getImporter in GatherContent 8.4

Get singleton Importer injected with mock object.

1 call to GcImportTestBase::getImporter()
ImporterTest::testImport in tests/src/Kernel/ImporterTest.php
Test the import function.

File

tests/src/Kernel/GcImportTestBase.php, line 52

Class

GcImportTestBase
Base class for import kernel tests.

Namespace

Drupal\Tests\gathercontent\Kernel

Code

public static function getImporter() {
  return new Importer(static::getClient(), static::getProcessor(), \Drupal::service('event_dispatcher'));
}