From da1c745a001e92a9544d591ec51f68eb11a719dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 10 May 2024 22:25:07 +0200 Subject: [PATCH] fix media delete test --- tests/Http/MediaControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Http/MediaControllerTest.php b/tests/Http/MediaControllerTest.php index b0cf84b9..6dccb010 100644 --- a/tests/Http/MediaControllerTest.php +++ b/tests/Http/MediaControllerTest.php @@ -66,7 +66,7 @@ public function test_a_media_controller_handles_destroy(): void $this->actingAs($this->admin) ->delete('/root/users/'.$this->admin->getKey().'/fields/media', ['ids' => [$medium->getKey()]]) ->assertOk() - ->assertJson(['deleted' => 1]); + ->assertJson(['deleted' => [1]]); $this->assertDatabaseMissing('root_media', ['id' => $medium->getKey()]); }