Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardDominik committed Apr 28, 2020
1 parent 20c038b commit fa612f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"spatie/laravel-medialibrary": "^7.19"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"phpunit/phpunit": "^8.5",
"orchestra/testbench": "~4.0|~5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/FileUploaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function a_user_can_upload_file()
'name' => 'test',
'path' => $this->getTestFilesDirectory('test.psd'),
];
$file = new UploadedFile($data['path'], $data['name'], 'image/jpeg', filesize($data['path']), false, true);
$file = new UploadedFile($data['path'], $data['name'], 'image/jpeg', null, true);
$response = $this->call('POST', 'upload', $data, [], ['file' => $file], [], []);

$response->assertStatus(200);
Expand Down

0 comments on commit fa612f5

Please sign in to comment.