Fix: merging chunks after upload

This commit is contained in:
Milos Stojanovic
2019-08-01 10:05:42 +02:00
parent a2517c6d9b
commit 49dc0b89a1
4 changed files with 27 additions and 4 deletions

View File

@@ -137,6 +137,23 @@ class UploadTest extends TestCase
$this->sendRequest('POST', '/upload', $data, $files);
$this->assertOk();
$this->sendRequest('POST', '/getdir', [
'dir' => '/',
]);
$this->assertResponseJsonHas([
'data' => [
'files' => [
0 => [
'type' => 'file',
'name' => 'sample.txt',
'path' => '/sample.txt',
'size' => 1572864,
],
],
],
]);
}
public function testUploadFileBiggerThanAllowed()