Skip to content

Commit 91fc3af

Browse files
committed
tests: Fix in MediaTest
1 parent cc93096 commit 91fc3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Unit/MediaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function testFileDelete(){
187187
]);
188188
$media = $folder->getMedia()->first();
189189
$this->assertDatabaseHas('media',[ 'id' => $media->id ]);
190-
$response = $this->actingAs($user)->get('/media/file/delete?id=' . $media['id'] . '&thisFolder=' . $folder->id);
190+
$response = $this->actingAs($user)->post('/media/file/delete?id=' . $media['id'] . '&thisFolder=' . $folder->id);
191191
$this->assertDatabaseMissing('media',['id' => $media->id ]);
192192
}
193193

0 commit comments

Comments
 (0)