actingAs(User::factory()->create()) ->get(route('licenses.index')) ->assertForbidden(); } public function testUserCanListLicenses() { $this->actingAs(User::factory()->superuser()->create()) ->get(route('licenses.index')) ->assertOk(); } }