You are here

public function ImportUpdateAssetsTest::setUp in Acquia Content Hub 8.2

Overrides KernelTestBase::setUp

File

tests/src/Kernel/ImportUpdateAssetsTest.php, line 65

Class

ImportUpdateAssetsTest
@coversDefaultClass \Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook\ImportUpdateAssets

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function setUp() : void {
  parent::setup();
  $this
    ->installSchema('acquia_contenthub_subscriber', 'acquia_contenthub_subscriber_import_tracking');
  $dispatcher = $this
    ->prophesize(EventDispatcher::class);
  $this->loggerChannel = new LoggerMock();
  $this->subTracker = $this->container
    ->get('acquia_contenthub_subscriber.tracker');
  $config_factory = $this->container
    ->get('config.factory');
  $queue_factory = $this->container
    ->get('queue');
  $this->importUpdateAssets = new ImportUpdateAssets($queue_factory, $dispatcher
    ->reveal(), $this->subTracker, $this->loggerChannel, $config_factory);
}