mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Fixed test broken by PdfGenerator changes
This commit is contained in:
@ -302,6 +302,7 @@ class ExportTest extends TestCase
|
|||||||
$mockPdfGenerator->shouldReceive('fromHtml')
|
$mockPdfGenerator->shouldReceive('fromHtml')
|
||||||
->with(\Mockery::capture($pdfHtml))
|
->with(\Mockery::capture($pdfHtml))
|
||||||
->andReturn('');
|
->andReturn('');
|
||||||
|
$mockPdfGenerator->shouldReceive('getActiveEngine')->andReturn(PdfGenerator::ENGINE_DOMPDF);
|
||||||
|
|
||||||
$this->asEditor()->get($page->getUrl('/export/pdf'));
|
$this->asEditor()->get($page->getUrl('/export/pdf'));
|
||||||
$this->assertStringNotContainsString('iframe>', $pdfHtml);
|
$this->assertStringNotContainsString('iframe>', $pdfHtml);
|
||||||
|
Reference in New Issue
Block a user