summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-05-04 08:07:08 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-05-04 08:07:08 +0100
commitd83420d34450beb0ce8334d4d2c8fefd945e9fe4 (patch)
treecb9b771c9977dbea154029cb44f2af68415d71ae /tests
parente1ab19597e2131dc0eaff392bce15fc64aade9eb (diff)
downloadwebtrees-d83420d34450beb0ce8334d4d2c8fefd945e9fe4.tar.gz
webtrees-d83420d34450beb0ce8334d4d2c8fefd945e9fe4.tar.bz2
webtrees-d83420d34450beb0ce8334d4d2c8fefd945e9fe4.zip
Fix: #2406 wrong parameter source in location edit controller
Diffstat (limited to 'tests')
-rw-r--r--tests/app/Http/Controllers/Admin/LocationControllerTest.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/app/Http/Controllers/Admin/LocationControllerTest.php b/tests/app/Http/Controllers/Admin/LocationControllerTest.php
index 99e61fd3e6..33bdb783dc 100644
--- a/tests/app/Http/Controllers/Admin/LocationControllerTest.php
+++ b/tests/app/Http/Controllers/Admin/LocationControllerTest.php
@@ -61,16 +61,18 @@ class LocationControllerTest extends TestCase
public function testMapDataSave(): void
{
$controller = new LocationController(new GedcomService());
- $request = self::createRequest('POST', ['route' => 'map-data-edit'], [
+ $request = self::createRequest('POST', [
+ 'route' => 'map-data-edit',
'parent_id' => '0',
- 'place_id' => '0',
- 'new_place_lati' => '-12.345',
- 'new_place_long' => '-123.45',
- 'icon' => '',
+ 'place_id' => '0',
+ ], [
+ 'new_place_lati' => '-12.345',
+ 'new_place_long' => '-123.45',
+ 'icon' => '',
'new_zoom_factor' => '2',
- 'new_place_name' => 'place',
- 'lati_control' => 'S',
- 'long_control' => 'W',
+ 'new_place_name' => 'place',
+ 'lati_control' => 'S',
+ 'long_control' => 'W',
]);
$response = $controller->mapDataSave($request);