A free open source IT asset/license management system
One more test
snipe590d13061a64
diff --git a/tests/Feature/Locations/Api/LocationsViewTest.php b/tests/Feature/Locations/Api/LocationsViewTest.phpindex b5bcff8e4d..1d57e58263 100644--- a/tests/Feature/Locations/Api/LocationsViewTest.php+++ b/tests/Feature/Locations/Api/LocationsViewTest.php@@ -18,6 +18,14 @@ class LocationsViewTest extends TestCase}public function testViewingLocationAssetIndexRequiresPermission()+ {+ $location = Location::factory()->create();+ $this->actingAsForApi(User::factory()->create())+ ->getJson(route('api.locations.viewassets', $location->id))+ ->assertForbidden();+ }++ public function testViewingLocationAssetIndex(){$location = Location::factory()->create();Asset::factory()->count(3)->assignedToLocation($location)->create();