function BigPipeResponseAttachmentsProcessorTest::createBigPipeResponseAttachmentsProcessor

Same name and namespace in other branches
  1. 9 core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::createBigPipeResponseAttachmentsProcessor()
  2. 8.9.x core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::createBigPipeResponseAttachmentsProcessor()
  3. 10 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 134

Class

BigPipeResponseAttachmentsProcessorTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21big_pipe%21src%21Render%21BigPipeResponseAttachmentsProcessor.php/class/BigPipeResponseAttachmentsProcessor/11.x" title="Processes attachments of HTML responses with BigPipe enabled." class="local">\Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor</a> @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(), $this->prophesize(LanguageManagerInterface::class)
        ->reveal());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.