summaryrefslogtreecommitdiff
path: root/tests/app/Module
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-02-19 23:31:23 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-02-20 09:43:06 +0000
commitd97083fe315dad9b7d0a150d4fb5f563e57d1869 (patch)
treeb4be67a05b132d458fc4b3e6922ab9575b54b8d4 /tests/app/Module
parent5fef3bfa81d4556f7a2fb3cea6c71a6306d21812 (diff)
downloadwebtrees-d97083fe315dad9b7d0a150d4fb5f563e57d1869.tar.gz
webtrees-d97083fe315dad9b7d0a150d4fb5f563e57d1869.tar.bz2
webtrees-d97083fe315dad9b7d0a150d4fb5f563e57d1869.zip
Create Timestamp class and factory to replace direct-dependency on Carbon
Diffstat (limited to 'tests/app/Module')
-rw-r--r--tests/app/Module/ChangeReportModuleTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/app/Module/ChangeReportModuleTest.php b/tests/app/Module/ChangeReportModuleTest.php
index e6ee5b7593..493e6e2879 100644
--- a/tests/app/Module/ChangeReportModuleTest.php
+++ b/tests/app/Module/ChangeReportModuleTest.php
@@ -20,8 +20,8 @@ declare(strict_types=1);
namespace Fisharebest\Webtrees\Module;
use Fisharebest\Webtrees\Auth;
-use Fisharebest\Webtrees\Carbon;
use Fisharebest\Webtrees\Contracts\UserInterface;
+use Fisharebest\Webtrees\Registry;
use Fisharebest\Webtrees\Report\HtmlRenderer;
use Fisharebest\Webtrees\Report\ReportParserGenerate;
use Fisharebest\Webtrees\Report\ReportParserSetup;
@@ -85,8 +85,8 @@ class ChangeReportModuleTest extends TestCase
$module = $module_service->findByInterface(ChangeReportModule::class)->first();
$xml = 'resources/' . $module->xmlFilename();
$vars = [
- 'changeRangeStart' => ['id' => Carbon::now()->subMonth()->format('d M Y')],
- 'changeRangeEnd' => ['id' => Carbon::now()->format('d M Y')],
+ 'changeRangeStart' => ['id' => Registry::timestampFactory()->now()->subtractMonths(1)->format('d M Y')],
+ 'changeRangeEnd' => ['id' => Registry::timestampFactory()->now()->format('d M Y')],
'pending' => ['id' => 'yes'],
'sortby' => ['id' => 'CHAN'],
'pageSize' => ['id' => 'A4'],