summaryrefslogtreecommitdiff
path: root/tests/app/Module/DescendancyReportModuleTest.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-12-30 09:13:04 +0000
committerGreg Roach <greg@subaqua.co.uk>2020-12-30 10:48:09 +0000
commit5e933c21f8006e675d1df8bcedc634ee61f4aec2 (patch)
treec9cc8c537163542486eff0cfdca70187589358b9 /tests/app/Module/DescendancyReportModuleTest.php
parent708e66987f7d6eed5675fea31f4074192e368cac (diff)
downloadwebtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.gz
webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.bz2
webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.zip
Testing
Diffstat (limited to 'tests/app/Module/DescendancyReportModuleTest.php')
-rw-r--r--tests/app/Module/DescendancyReportModuleTest.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/app/Module/DescendancyReportModuleTest.php b/tests/app/Module/DescendancyReportModuleTest.php
index cc8ca16a6f..e3603c0816 100644
--- a/tests/app/Module/DescendancyReportModuleTest.php
+++ b/tests/app/Module/DescendancyReportModuleTest.php
@@ -2,7 +2,7 @@
/**
* webtrees: online genealogy
- * Copyright (C) 2019 webtrees development team
+ * Copyright (C) 2020 webtrees development team
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -30,7 +30,6 @@ use Fisharebest\Webtrees\TestCase;
use Fisharebest\Webtrees\User;
use League\Flysystem\Adapter\NullAdapter;
use League\Flysystem\Filesystem;
-use PHPUnit\Framework\Error\Notice;
use function ob_get_clean;
use function ob_start;
@@ -95,19 +94,19 @@ class DescendancyReportModuleTest extends TestCase
];
$report = new ReportParserSetup($xml);
- $this->assertIsArray($report->reportProperties());
+ self::assertIsArray($report->reportProperties());
ob_start();
new ReportParserGenerate($xml, new HtmlRenderer(), $vars, $tree, $data_filesystem);
$html = ob_get_clean();
- $this->assertStringStartsWith('<', $html);
- $this->assertStringEndsWith('>', $html);
+ self::assertStringStartsWith('<', $html);
+ self::assertStringEndsWith('>', $html);
ob_start();
new ReportParserGenerate($xml, new PdfRenderer(), $vars, $tree, $data_filesystem);
$pdf = ob_get_clean();
- $this->assertStringStartsWith('%PDF', $pdf);
- $this->assertStringEndsWith("%%EOF\n", $pdf);
+ self::assertStringStartsWith('%PDF', $pdf);
+ self::assertStringEndsWith("%%EOF\n", $pdf);
}
}