{$state}()->create(); $this->actingAs($user)->get(route('customers.index'))->assertStatus($status); $this->actingAs($user)->get(route('customers.create'))->assertStatus($status); })->with([ 'admin' => ['admin', 200], 'management' => ['management', 200], 'employee' => ['employee', 200], 'intern' => ['intern', 200], 'subcontractor' => ['subcontractor', 403], ]); it('does not let the customer id be changed in the browser', function () { $customer = CustomerModel::factory()->create(); Livewire::actingAs(User::factory()->create()) ->test('customers::form') ->set('customerId', $customer->id); })->throws(CannotUpdateLockedPropertyException::class);