Fireguard\Report\Exporters\ImageExporterTest::testCreateResponseForceDownload PHP Method

testCreateResponseForceDownload() public method

    public function testCreateResponseForceDownload()
    {
        $exporter = new ImageExporter(null, 'test-file-name-download');
        $report = new Report('<section class="content">Content</section>');
        $response = $exporter->setFormat('JPG')->response($report, true);
        $this->assertInstanceOf(Response::class, $response);
        $this->assertTrue($response->headers->contains('content-disposition', 'attachment; filename="test-file-name-download.jpg"'), 'Could not find header to force download');
    }