Skip to content

Commit

Permalink
Merge pull request #214 from conedevelopment/szepeviktor-patch-2
Browse files Browse the repository at this point in the history
fix media delete test
  • Loading branch information
iamgergo authored May 10, 2024
2 parents 134c78f + da1c745 commit e7ca067
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 e7ca067

Please sign in to comment.