it_use_user_token_in_public_api_request test

This commit is contained in:
Peter Papp
2021-07-16 09:26:07 +02:00
parent 8ac41837b2
commit 36cea4853f
20 changed files with 49 additions and 122 deletions

View File

@@ -313,8 +313,6 @@ class VisitorManipulatingTest extends TestCase
*/
public function editor_upload_file_into_shared_folder()
{
Storage::fake('local');
$this->setup->create_directories();
// check private or public share record
@@ -353,6 +351,7 @@ class VisitorManipulatingTest extends TestCase
$this
->withUnencryptedCookies($cookie)
->post("/api/editor/upload/$share->token", [
'filename' => $file->name,
'file' => $file,
'folder_id' => $folder->id,
'is_last' => true,
@@ -363,6 +362,7 @@ class VisitorManipulatingTest extends TestCase
if (!$is_protected) {
$this->postJson("/api/editor/upload/$share->token", [
'filename' => $file->name,
'file' => $file,
'folder_id' => $folder->id,
'is_last' => true,