function BigPipeResponseAttachmentsProcessorTest::nonHtmlResponseProvider

Same name and namespace in other branches
  1. 11.x core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::nonHtmlResponseProvider()
  2. 10 core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::nonHtmlResponseProvider()
  3. 9 core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::nonHtmlResponseProvider()
  4. 8.9.x core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::nonHtmlResponseProvider()

Provides data to testNonHtmlResponse().

File

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

Class

BigPipeResponseAttachmentsProcessorTest
Tests Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor.

Namespace

Drupal\Tests\big_pipe\Unit\Render

Code

public static function nonHtmlResponseProvider() {
  return [
    'AjaxResponse, which implements AttachmentsInterface' => [
      AjaxResponse::class,
    ],
    'A dummy that implements AttachmentsInterface' => [
      get_class((new Prophet())->prophesize(AttachmentsInterface::class)
        ->reveal()),
    ],
  ];
}

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