You are here

protected function BigPipeResponseAttachmentsProcessorTest::createBigPipeResponseAttachmentsProcessor in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::createBigPipeResponseAttachmentsProcessor()
  2. 9 core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::createBigPipeResponseAttachmentsProcessor()

Creates a BigPipeResponseAttachmentsProcessor with mostly dummies.

Parameters

\Prophecy\Prophecy\ObjectProphecy $decorated_html_response_attachments_processor: An object prophecy implementing AttachmentsResponseProcessorInterface.

Return value

\Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor The BigPipeResponseAttachmentsProcessor to test.

2 calls to BigPipeResponseAttachmentsProcessorTest::createBigPipeResponseAttachmentsProcessor()
BigPipeResponseAttachmentsProcessorTest::testHtmlResponse in core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
@covers ::processAttachments
BigPipeResponseAttachmentsProcessorTest::testNonHtmlResponse in core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
@covers ::processAttachments

File

core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php, line 129

Class

BigPipeResponseAttachmentsProcessorTest
@coversDefaultClass \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor @group big_pipe

Namespace

Drupal\Tests\big_pipe\Unit\Render

Code

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());
}