diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-05-04 08:07:08 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-05-04 08:07:08 +0100 |
| commit | d83420d34450beb0ce8334d4d2c8fefd945e9fe4 (patch) | |
| tree | cb9b771c9977dbea154029cb44f2af68415d71ae /tests | |
| parent | e1ab19597e2131dc0eaff392bce15fc64aade9eb (diff) | |
| download | webtrees-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.php | 18 |
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); |
