public function FormassemblyHtmlResponseAttachmentsProcessorTest::testProcessAttachmentsNoAdditions in FormAssembly 8
@covers ::processAttachments
File
- tests/
src/ Unit/ FormassemblyHtmlResponseAttachmentsProcessorTest.php, line 145
Class
- FormassemblyHtmlResponseAttachmentsProcessorTest
- Unit test calls for FormassemblyHtmlResponseAttachmentsProcessor.
Namespace
Drupal\Tests\formassembly\UnitCode
public function testProcessAttachmentsNoAdditions() {
// Ensure that if there are no fa_form_attachments
// nothing is added to the attachments.
$response = new HtmlResponse();
$config_factory = $this
->getConfigFactoryStub();
$response = $this
->getFormassemblyAttachmentProcessor($config_factory)
->processAttachments($response);
$processedAttachments = $response
->getAttachments();
$this
->assertEmpty($processedAttachments);
}