public function BigPipeResponseAttachmentsProcessorTest::testNonHtmlResponse in Drupal 9
Same name and namespace in other branches
- 8 core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php \Drupal\Tests\big_pipe\Unit\Render\BigPipeResponseAttachmentsProcessorTest::testNonHtmlResponse()
@covers ::processAttachments
@dataProvider nonHtmlResponseProvider
File
- core/
modules/ big_pipe/ tests/ src/ Unit/ Render/ BigPipeResponseAttachmentsProcessorTest.php, line 32
Class
- BigPipeResponseAttachmentsProcessorTest
- @coversDefaultClass \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor @group big_pipe
Namespace
Drupal\Tests\big_pipe\Unit\RenderCode
public function testNonHtmlResponse($response_class) {
$big_pipe_response_attachments_processor = $this
->createBigPipeResponseAttachmentsProcessor($this
->prophesize(AttachmentsResponseProcessorInterface::class));
$non_html_response = new $response_class();
$this
->expectException(\AssertionError::class);
$big_pipe_response_attachments_processor
->processAttachments($non_html_response);
}