Skip to content

NOW MANAGED ON CODEBERG

Fixed test broken by PdfGenerator changes

Dan Brown7e6e1fca7616
diff --git a/tests/Entity/ExportTest.php b/tests/Entity/ExportTest.php
index 9a824a3da..fc6b74088 100644
--- a/tests/Entity/ExportTest.php
+++ b/tests/Entity/ExportTest.php
@@ -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);