Make folders selectable and downloadable with item count and sharing status.
Deploy Ladill Transfer / deploy (push) Successful in 35s
Deploy Ladill Transfer / deploy (push) Successful in 35s
Folder rows match the file table layout, support zip download, and participate in bulk selection, share, and copy-link actions. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -225,4 +225,28 @@ class TransferFilesTest extends TestCase
|
||||
'original_name' => 'cover.png',
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_owner_can_download_folder_as_zip(): void
|
||||
{
|
||||
Storage::fake('qr');
|
||||
$this->fakeTransferBillingApi();
|
||||
|
||||
$user = $this->createUser();
|
||||
$folder = $this->createFolder($user, 'Forum');
|
||||
|
||||
$this->actingAs($user)
|
||||
->postJson(route('transfer.files.upload'), [
|
||||
'folder' => $folder->id,
|
||||
'files' => [
|
||||
UploadedFile::fake()->create('notes.txt', 10, 'text/plain'),
|
||||
UploadedFile::fake()->create('photo.jpg', 10, 'image/jpeg'),
|
||||
],
|
||||
])
|
||||
->assertOk();
|
||||
|
||||
$this->actingAs($user)
|
||||
->get(route('transfer.files.folders.download', $folder))
|
||||
->assertOk()
|
||||
->assertHeader('content-type', 'application/zip');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user