summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/app/Http/Controllers/Admin/LocationControllerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/app/Http/Controllers/Admin/LocationControllerTest.php b/tests/app/Http/Controllers/Admin/LocationControllerTest.php
index cc87ecb656..c91eeb2768 100644
--- a/tests/app/Http/Controllers/Admin/LocationControllerTest.php
+++ b/tests/app/Http/Controllers/Admin/LocationControllerTest.php
@@ -157,7 +157,7 @@ class LocationControllerTest extends TestCase
$tree = $tree_service->create('name', 'title');
$controller = new LocationController($gedcom_service, $tree_service);
$request = self::createRequest()
- ->withAttribute('tree', $tree);
+ ->withParsedBody(['ged' => $tree->name()]);
$response = $controller->importLocationsFromTree($request);
$this->assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());