You are here

protected function DfpHtmlResponseAttachmentsProcessorTest::getDfpAttachmentProcessor in Doubleclick for Publishers (DFP) 8

Creates a DfpHtmlResponseAttachmentsProcessor object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A mock config factory that can contain 'dfp.settings' configuration.

Return value

\Drupal\dfp\DfpHtmlResponseAttachmentsProcessor The DfpHtmlResponseAttachmentsProcessor object.

File

tests/src/Unit/DfpHtmlResponseAttachmentsProcessorTest.php, line 149
Contains \Drupal\Tests\dfp\Unit\DfpHtmlResponseAttachmentsProcessorTest.

Class

DfpHtmlResponseAttachmentsProcessorTest
@coversDefaultClass \Drupal\dfp\DfpHtmlResponseAttachmentsProcessor @group dfp

Namespace

Drupal\Tests\dfp\Unit

Code

protected function getDfpAttachmentProcessor(ConfigFactoryInterface $config_factory) {
  return new DfpHtmlResponseAttachmentsProcessor($this->attachmentProcessor, $this->token
    ->reveal(), $this->assetResolver
    ->reveal(), $config_factory, $this->cssCollectionRenderer
    ->reveal(), $this->jsCollectionRenderer
    ->reveal(), $this->requestStack
    ->reveal(), $this->renderer
    ->reveal(), $this->moduleHandler
    ->reveal());
}