createUsers()->create(); $response = $this->actingAs($admin) ->get('modals/user') ->assertOk(); $response->assertStatus(200); $response->assertDontSee($admin->first_name); $response->assertDontSee($admin->last_name); $response->assertDontSee($admin->email); } public function test_department_modal_renders() { $this->actingAs(User::factory()->superuser()->create()) ->get('modals/model') ->assertOk(); } public function test_status_label_modal_renders() { $this->actingAs(User::factory()->superuser()->create()) ->get('modals/statuslabel') ->assertOk(); } public function test_location_modal_renders() { $this->actingAs(User::factory()->superuser()->create()) ->get('modals/location') ->assertOk(); } public function test_category_modal_renders() { $this->actingAs(User::factory()->superuser()->create()) ->get('modals/category') ->assertOk(); } public function test_manufacturer_modal_renders() { $this->actingAs(User::factory()->superuser()->create()) ->get('modals/manufacturer') ->assertOk(); } public function test_supplier_modal_renders() { $this->actingAs(User::factory()->superuser()->create()) ->get('modals/supplier') ->assertOk(); } }