diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2023-03-31 18:14:01 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2023-04-03 22:37:37 +0100 |
| commit | d35568b467207589ea9059739da0bf1f7e785a0d (patch) | |
| tree | c9a9fafeddaa4c5359249b3a7fd9aeca3b556c3b /tests/app/Elements/XrefLocationTest.php | |
| parent | d9ea0e86582fe4bcb21969eb1dafa8be7d592091 (diff) | |
| download | webtrees-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.php | 4 |
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(); |
