Skip to content

Commit

Permalink
fix media delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored May 10, 2024
1 parent 134c78f commit da1c745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Http/MediaControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()]);
}
Expand Down

0 comments on commit da1c745

Please sign in to comment.