A free open source IT asset/license management system
Fix test route
Marcus Moore4875283ed166
diff --git a/tests/Feature/Locations/Api/UpdateLocationsTest.php b/tests/Feature/Locations/Api/UpdateLocationsTest.phpindex a169ba87bf..13b7cc00a3 100644--- a/tests/Feature/Locations/Api/UpdateLocationsTest.php+++ b/tests/Feature/Locations/Api/UpdateLocationsTest.php@@ -8,11 +8,10 @@ use Tests\TestCase;class UpdateLocationsTest extends TestCase{-public function testRequiresPermissionToEditLocation(){$this->actingAsForApi(User::factory()->create())- ->postJson(route('api.locations.store', Location::factory()->create()))+ ->patchJson(route('api.locations.update', Location::factory()->create()))->assertForbidden();}@@ -33,8 +32,5 @@ class UpdateLocationsTest extends TestCase$location->refresh();$this->assertEquals('Test Updated Location', $location->name, 'Name was not updated');$this->assertEquals('Test Updated Note', $location->notes, 'Note was not updated');-}--}