diff --git a/tests/Http/MediaControllerTest.php b/tests/Http/MediaControllerTest.php index b0cf84b9..a4c8d8fa 100644 --- a/tests/Http/MediaControllerTest.php +++ b/tests/Http/MediaControllerTest.php @@ -64,6 +64,7 @@ public function test_a_media_controller_handles_destroy(): void $medium = Medium::factory()->create(); $this->actingAs($this->admin) + ->withoutExceptionHandling() ->delete('/root/users/'.$this->admin->getKey().'/fields/media', ['ids' => [$medium->getKey()]]) ->assertOk() ->assertJson(['deleted' => 1]);