]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/ExportTest.php
Updated minimum php version from 7.3 to 7.4
[bookstack] / tests / Entity / ExportTest.php
index 9a824a3da7f2ea6d4d901caa1aa671bc2487861a..fc6b74088c0199e7976ff1b54a1712f81aa809f8 100644 (file)
@@ -302,6 +302,7 @@ class ExportTest extends TestCase
         $mockPdfGenerator->shouldReceive('fromHtml')
             ->with(\Mockery::capture($pdfHtml))
             ->andReturn('');
+        $mockPdfGenerator->shouldReceive('getActiveEngine')->andReturn(PdfGenerator::ENGINE_DOMPDF);
 
         $this->asEditor()->get($page->getUrl('/export/pdf'));
         $this->assertStringNotContainsString('iframe>', $pdfHtml);