]> BookStack Code Mirror - bookstack/commitdiff
Fixed test broken by PdfGenerator changes
authorDan Brown <redacted>
Mon, 24 Jan 2022 22:24:41 +0000 (22:24 +0000)
committerDan Brown <redacted>
Mon, 24 Jan 2022 22:24:41 +0000 (22:24 +0000)
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);