This commit is contained in:
philipp lang 2024-01-02 01:28:16 +01:00
parent 7e8f762885
commit 2d39816954
1 changed files with 8 additions and 8 deletions

View File

@ -233,14 +233,14 @@ test('it returns 403 when not authorized', function () {
$post = $this->newPost(); $post = $this->newPost();
$response = $this->postJson('/mediaupload', [ $response = $this->postJson('/mediaupload', [
'model' => 'post', 'model' => 'post',
'id' => $post->id, 'id' => $post->id,
'collection' => 'defaultSingleFile', 'collection' => 'defaultSingleFile',
'payload' => [ 'payload' => [
'content' => base64_encode($this->pdfFile()->getContent()), 'content' => base64_encode($this->pdfFile()->getContent()),
'name' => 'beispiel bild.jpg', 'name' => 'beispiel bild.jpg',
], ],
]); ]);
$response->assertStatus(403); $response->assertStatus(403);
}); });