0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-04-24 12:43:07 +00:00

Fixed test broken by PdfGenerator changes

This commit is contained in:
Dan Brown 2022-01-24 22:24:41 +00:00
parent aaa2205df1
commit 7e6e1fca76
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View 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);