BigPipeResponseAttachmentsProcessor example

/** * Creates a BigPipeResponseAttachmentsProcessor with mostly dummies. * * @param \Prophecy\Prophecy\ObjectProphecy $decorated_html_response_attachments_processor * An object prophecy implementing AttachmentsResponseProcessorInterface. * * @return \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor * The BigPipeResponseAttachmentsProcessor to test. */
  protected function createBigPipeResponseAttachmentsProcessor(ObjectProphecy $decorated_html_response_attachments_processor) {
    return new BigPipeResponseAttachmentsProcessor(
      $decorated_html_response_attachments_processor->reveal(),
      $this->prophesize(AssetResolverInterface::class)->reveal(),
      $this->prophesize(ConfigFactoryInterface::class)->reveal(),
      $this->prophesize(AssetCollectionRendererInterface::class)->reveal(),
      $this->prophesize(AssetCollectionRendererInterface::class)->reveal(),
      $this->prophesize(RequestStack::class)->reveal(),
      $this->prophesize(RendererInterface::class)->reveal(),
      $this->prophesize(ModuleHandlerInterface::class)->reveal(),
      $this->prophesize(LanguageManagerInterface::class)->reveal()
    );
  }

}
Home | Imprint | This part of the site doesn't use cookies.