From 1988eaeacd1923e432c9f399dd88d8f6a16963f0 Mon Sep 17 00:00:00 2001 From: Railken Date: Thu, 28 Mar 2024 17:17:43 +0100 Subject: [PATCH] Update FileTest.php --- tests/Http/FileTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Http/FileTest.php b/tests/Http/FileTest.php index dc7c2b1..cb15f61 100644 --- a/tests/Http/FileTest.php +++ b/tests/Http/FileTest.php @@ -37,7 +37,9 @@ class FileTest extends Base */ public function testHttpUpload() { - $response = $this->callAndTest('POST', route('data.create', ['name' => 'file']), ['name' => 'yolo'], 201); + $nameFile = 'lorem'; + + $response = $this->callAndTest('POST', route('data.create', ['name' => 'file']), ['name' => $nameFile], 201); $body = json_decode($response->getContent()); $response = $this->callAndTest('POST', route('app.file.upload', ['id' => $body->data->id]), [ @@ -46,7 +48,7 @@ public function testHttpUpload() $body = json_decode($response->getContent()); - $response = $this->callAndTest('GET', route('app.file.stream', ['id' => $body->data->id, 'name' => 'yolo']), [], 200); + $response = $this->callAndTest('GET', route('app.file.stream', ['id' => $body->data->id, 'name' => $nameFile]), [], 200); } }