summaryrefslogtreecommitdiff
path: root/tests/app/Module/MissingFactsReportModuleTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Module/MissingFactsReportModuleTest.php')
-rw-r--r--tests/app/Module/MissingFactsReportModuleTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/app/Module/MissingFactsReportModuleTest.php b/tests/app/Module/MissingFactsReportModuleTest.php
index 817a67fdc0..8de25ebcbb 100644
--- a/tests/app/Module/MissingFactsReportModuleTest.php
+++ b/tests/app/Module/MissingFactsReportModuleTest.php
@@ -118,18 +118,19 @@ class MissingFactsReportModuleTest extends TestCase
'freli' => ['id' => 'on'],
];
- $report = new ReportParserSetup($xml);
- self::assertNotEmpty($report->reportProperties());
+ new ReportParserSetup($xml);
ob_start();
new ReportParserGenerate($xml, new HtmlRenderer(), $vars, $tree);
$html = ob_get_clean();
+ self::assertIsString($html);
self::assertStringStartsWith('<', $html);
self::assertStringEndsWith('>', $html);
ob_start();
new ReportParserGenerate($xml, new PdfRenderer(), $vars, $tree);
$pdf = ob_get_clean();
+ self::assertIsString($pdf);
self::assertStringStartsWith('%PDF', $pdf);
self::assertStringEndsWith("%%EOF\n", $pdf);
}