summaryrefslogtreecommitdiff
path: root/tests/app/Module/IndividualReportModuleTest.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-01-15 12:59:28 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-01-15 16:43:38 +0000
commit1fe542e96f8f7eedeebc278fae1e0ab0d9e74d95 (patch)
tree56fc048c2d7a03d83b5c7786a0b5ff98ea42e3a5 /tests/app/Module/IndividualReportModuleTest.php
parentddb44b4cf356ab8fd0c5d21becf3fce4c4e46244 (diff)
downloadwebtrees-1fe542e96f8f7eedeebc278fae1e0ab0d9e74d95.tar.gz
webtrees-1fe542e96f8f7eedeebc278fae1e0ab0d9e74d95.tar.bz2
webtrees-1fe542e96f8f7eedeebc278fae1e0ab0d9e74d95.zip
Move user constants to the user interface class
Diffstat (limited to 'tests/app/Module/IndividualReportModuleTest.php')
-rw-r--r--tests/app/Module/IndividualReportModuleTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/app/Module/IndividualReportModuleTest.php b/tests/app/Module/IndividualReportModuleTest.php
index cf815f919b..4ce96b2418 100644
--- a/tests/app/Module/IndividualReportModuleTest.php
+++ b/tests/app/Module/IndividualReportModuleTest.php
@@ -2,7 +2,7 @@
/**
* webtrees: online genealogy
- * Copyright (C) 2020 webtrees development team
+ * Copyright (C) 2021 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
@@ -20,6 +20,7 @@ declare(strict_types=1);
namespace Fisharebest\Webtrees\Module;
use Fisharebest\Webtrees\Auth;
+use Fisharebest\Webtrees\Contracts\UserInterface;
use Fisharebest\Webtrees\Report\HtmlRenderer;
use Fisharebest\Webtrees\Report\ReportParserGenerate;
use Fisharebest\Webtrees\Report\ReportParserSetup;
@@ -27,7 +28,6 @@ use Fisharebest\Webtrees\Report\PdfRenderer;
use Fisharebest\Webtrees\Services\ModuleService;
use Fisharebest\Webtrees\Services\UserService;
use Fisharebest\Webtrees\TestCase;
-use Fisharebest\Webtrees\User;
use League\Flysystem\Adapter\NullAdapter;
use League\Flysystem\Filesystem;
@@ -77,7 +77,7 @@ class IndividualReportModuleTest extends TestCase
$module_service = new ModuleService();
$user = (new UserService())->create('user', 'User', 'user@example.com', 'secret');
- $user->setPreference(User::PREF_IS_ADMINISTRATOR, '1');
+ $user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
Auth::login($user);
$tree = $this->importTree('demo.ged');