Skip to content

Commit

Permalink
Update MediaControllerTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored May 10, 2024
1 parent 2272f48 commit 341bbd8
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 @@ -36,7 +36,6 @@ public function setUp(): void
public function test_a_media_controller_handles_index(): void
{
$this->actingAs($this->admin)
->withoutExceptionHandling()
->get('/root/users/'.$this->admin->getKey().'/fields/media')
->assertOk()
->assertJson($this->field->paginateRelatable($this->app['request'], $this->admin)->toArray());
Expand Down Expand Up @@ -65,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]);
Expand Down

0 comments on commit 341bbd8

Please sign in to comment.