summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-11-10 15:18:42 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-11-10 15:18:42 +0000
commit0cfbe4b03376cf2989ba4b31e304164a193b151c (patch)
tree1a7e9d8d012485479bc59914e5be74eb8c7f3130 /tests
parent40296c5fe3cc3b9b2efcff7ca2559d76a3a00260 (diff)
downloadwebtrees-0cfbe4b03376cf2989ba4b31e304164a193b151c.tar.gz
webtrees-0cfbe4b03376cf2989ba4b31e304164a193b151c.tar.bz2
webtrees-0cfbe4b03376cf2989ba4b31e304164a193b151c.zip
Fix: #2760 - missing parameter when importing places from a tree
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());