You are here

public static function GcImportTestBase::getProcessor in GatherContent 8.4

Get singleton ContentProcessor injected with mock object.

1 call to GcImportTestBase::getProcessor()
GcImportTestBase::getImporter in tests/src/Kernel/GcImportTestBase.php
Get singleton Importer injected with mock object.

File

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

Class

GcImportTestBase
Base class for import kernel tests.

Namespace

Drupal\Tests\gathercontent\Kernel

Code

public static function getProcessor() {
  static $processor = NULL;
  if ($processor === NULL) {
    $processor = new ContentProcessor(static::getClient(), static::getMetatag(), \Drupal::service('datetime.time'));
  }
  return $processor;
}