You are here

protected function FormassemblyHtmlResponseAttachmentsProcessorTest::getFormassemblyAttachmentProcessor in FormAssembly 8

Creates a FormassemblyHtmlResponseAttachmentsProcessor object.

Parameters

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

Return value

\Drupal\formassembly\Component\Render\FormassemblyHtmlResponseAttachmentsProcessor The DfpHtmlResponseAttachmentsProcessor object.

File

tests/src/Unit/FormassemblyHtmlResponseAttachmentsProcessorTest.php, line 164

Class

FormassemblyHtmlResponseAttachmentsProcessorTest
Unit test calls for FormassemblyHtmlResponseAttachmentsProcessor.

Namespace

Drupal\Tests\formassembly\Unit

Code

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