From 7e6e1fca7616843f9184eecfd6776bef5f3f4366 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 24 Jan 2022 22:24:41 +0000 Subject: [PATCH] Fixed test broken by PdfGenerator changes --- tests/Entity/ExportTest.php | 1 + 1 file changed, 1 insertion(+) 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);