summaryrefslogtreecommitdiff
path: root/tests/app/Elements/XrefLocationTest.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2023-03-31 18:14:01 +0100
committerGreg Roach <greg@subaqua.co.uk>2023-04-03 22:37:37 +0100
commitd35568b467207589ea9059739da0bf1f7e785a0d (patch)
treec9a9fafeddaa4c5359249b3a7fd9aeca3b556c3b /tests/app/Elements/XrefLocationTest.php
parentd9ea0e86582fe4bcb21969eb1dafa8be7d592091 (diff)
downloadwebtrees-d35568b467207589ea9059739da0bf1f7e785a0d.tar.gz
webtrees-d35568b467207589ea9059739da0bf1f7e785a0d.tar.bz2
webtrees-d35568b467207589ea9059739da0bf1f7e785a0d.zip
Replace illuminate/container with our own simpler container
Diffstat (limited to 'tests/app/Elements/XrefLocationTest.php')
-rw-r--r--tests/app/Elements/XrefLocationTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/app/Elements/XrefLocationTest.php b/tests/app/Elements/XrefLocationTest.php
index 95a60081a3..b6a7c62326 100644
--- a/tests/app/Elements/XrefLocationTest.php
+++ b/tests/app/Elements/XrefLocationTest.php
@@ -27,8 +27,6 @@ use Fisharebest\Webtrees\TestCase;
use Fisharebest\Webtrees\Tree;
use Psr\Http\Message\ServerRequestInterface;
-use function app;
-
/**
* Test harness for the class XrefLocation
*
@@ -57,7 +55,7 @@ class XrefLocationTest extends TestCase
$request = self::createRequest();
- app()->instance(ServerRequestInterface::class, $request);
+ Registry::container()->set(ServerRequestInterface::class, $request);
$html = $element->edit('some-id', 'some-name', '@X123@', $tree);
$dom = new DOMDocument();