Skip to content

A free open source IT asset/license management system

Small test fix

snipe207eca5d07e7
diff --git a/tests/Feature/Locations/Ui/BulkActionDropdownRendersTest.php b/tests/Feature/Locations/Ui/BulkActionDropdownRendersTest.php
index 6bc806c0e1..e3a43c0f28 100644
--- a/tests/Feature/Locations/Ui/BulkActionDropdownRendersTest.php
+++ b/tests/Feature/Locations/Ui/BulkActionDropdownRendersTest.php
@@ -30,7 +30,7 @@ class BulkActionDropdownRendersTest extends TestCase
// @can('delete', Location::class) gate in bulk-locations.blade.php
// passes and the form actually reaches the DOM.
Location::factory()->create();
- $actor = User::factory()->deleteLocations()->create();
+ $actor = User::factory()->viewLocationHistory()->deleteLocations()->create();
$html = $this->actingAs($actor)
->get(route('locations.index'))