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

testCreateResponseInline() public method

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