mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 11:00:39 +00:00
it_use_user_token_in_public_api_request test
This commit is contained in:
@@ -151,8 +151,6 @@ class UserShareTest extends TestCase
|
||||
*/
|
||||
public function it_share_folder_and_send_link_for_multiple_email()
|
||||
{
|
||||
Notification::fake();
|
||||
|
||||
$folder = Folder::factory(Folder::class)
|
||||
->create();
|
||||
|
||||
@@ -179,8 +177,6 @@ class UserShareTest extends TestCase
|
||||
*/
|
||||
public function it_send_existing_shared_folder_for_multiple_email_once_again()
|
||||
{
|
||||
Notification::fake();
|
||||
|
||||
$folder = Folder::factory(Folder::class)
|
||||
->create();
|
||||
|
||||
|
||||
@@ -31,8 +31,6 @@ class VisitorAccessToItemsTest extends TestCase
|
||||
*/
|
||||
public function it_download_file()
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->setup->create_directories();
|
||||
|
||||
collect([true, false])
|
||||
@@ -108,8 +106,6 @@ class VisitorAccessToItemsTest extends TestCase
|
||||
*/
|
||||
public function it_get_shared_image()
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->setup->create_directories();
|
||||
|
||||
collect([true, false])
|
||||
@@ -167,8 +163,6 @@ class VisitorAccessToItemsTest extends TestCase
|
||||
*/
|
||||
public function it_get_public_thumbnail()
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->setup->create_directories();
|
||||
|
||||
collect([true, false])
|
||||
@@ -229,8 +223,6 @@ class VisitorAccessToItemsTest extends TestCase
|
||||
*/
|
||||
public function it_download_publicly_zipped_files()
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->setup->create_directories();
|
||||
|
||||
collect([true, false])
|
||||
|
||||
@@ -146,8 +146,6 @@ class VisitorBrowseTest extends TestCase
|
||||
*/
|
||||
public function visitor_zip_shared_multiple_files()
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->setup->create_directories();
|
||||
|
||||
// check private or public share record
|
||||
@@ -284,8 +282,6 @@ class VisitorBrowseTest extends TestCase
|
||||
*/
|
||||
public function visitor_zip_shared_folder()
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->setup->create_directories();
|
||||
|
||||
// check private or public share record
|
||||
@@ -369,8 +365,6 @@ class VisitorBrowseTest extends TestCase
|
||||
*/
|
||||
public function visitor_try_zip_not_shared_folder()
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->setup->create_directories();
|
||||
|
||||
// check private or public share record
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user