mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-28 15:24:43 +00:00
test fixing
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
APP_NAME=Laravel
|
APP_NAME=Laravel
|
||||||
APP_ENV=local
|
APP_ENV=local
|
||||||
APP_KEY=base64:Shf3vEB/Up0FKetshDU3OwCZuv01XG8fb/3k26qHxqg=
|
APP_KEY=base64:DZMmPFCbaykO5HNb9ltj1PKX/WKGylZf0s/ghUWUCGs=
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://localhost
|
APP_URL=http://localhost
|
||||||
APP_DEMO=false
|
APP_DEMO=false
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ class ResetPassword extends Notification
|
|||||||
/**
|
/**
|
||||||
* Create a new notification instance.
|
* Create a new notification instance.
|
||||||
*/
|
*/
|
||||||
private function __construct(
|
public function __construct(
|
||||||
private string $token
|
public string $token
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class UserShareTest extends TestCase
|
|||||||
|
|
||||||
$this
|
$this
|
||||||
->actingAs($user)
|
->actingAs($user)
|
||||||
->postJson("/api/share/$file->id", [
|
->postJson("/api/share", [
|
||||||
'isPassword' => false,
|
'isPassword' => false,
|
||||||
'permission' => 'editor',
|
'permission' => 'editor',
|
||||||
'type' => 'file',
|
'type' => 'file',
|
||||||
@@ -75,7 +75,7 @@ class UserShareTest extends TestCase
|
|||||||
|
|
||||||
$this
|
$this
|
||||||
->actingAs($user)
|
->actingAs($user)
|
||||||
->postJson("/api/share/$folder->id", [
|
->postJson("/api/share", [
|
||||||
'isPassword' => false,
|
'isPassword' => false,
|
||||||
'permission' => 'editor',
|
'permission' => 'editor',
|
||||||
'type' => 'folder',
|
'type' => 'folder',
|
||||||
@@ -110,7 +110,7 @@ class UserShareTest extends TestCase
|
|||||||
|
|
||||||
$this
|
$this
|
||||||
->actingAs($user)
|
->actingAs($user)
|
||||||
->postJson("/api/share/$folder->id", [
|
->postJson("/api/share", [
|
||||||
'isPassword' => true,
|
'isPassword' => true,
|
||||||
'password' => 'secret',
|
'password' => 'secret',
|
||||||
'permission' => 'editor',
|
'permission' => 'editor',
|
||||||
@@ -150,7 +150,7 @@ class UserShareTest extends TestCase
|
|||||||
|
|
||||||
$this
|
$this
|
||||||
->actingAs($user)
|
->actingAs($user)
|
||||||
->postJson("/api/share/$folder->id", [
|
->postJson("/api/share", [
|
||||||
'isPassword' => false,
|
'isPassword' => false,
|
||||||
'permission' => 'editor',
|
'permission' => 'editor',
|
||||||
'type' => 'folder',
|
'type' => 'folder',
|
||||||
@@ -178,7 +178,7 @@ class UserShareTest extends TestCase
|
|||||||
|
|
||||||
$this
|
$this
|
||||||
->actingAs($user)
|
->actingAs($user)
|
||||||
->postJson("/api/share/$folder->id", [
|
->postJson("/api/share", [
|
||||||
'isPassword' => false,
|
'isPassword' => false,
|
||||||
'permission' => 'editor',
|
'permission' => 'editor',
|
||||||
'type' => 'folder',
|
'type' => 'folder',
|
||||||
@@ -206,7 +206,7 @@ class UserShareTest extends TestCase
|
|||||||
|
|
||||||
Sanctum::actingAs($user);
|
Sanctum::actingAs($user);
|
||||||
|
|
||||||
$this->postJson("/api/share/$folder->id", [
|
$this->postJson("/api/share", [
|
||||||
'isPassword' => false,
|
'isPassword' => false,
|
||||||
'permission' => 'editor',
|
'permission' => 'editor',
|
||||||
'type' => 'folder',
|
'type' => 'folder',
|
||||||
@@ -237,7 +237,7 @@ class UserShareTest extends TestCase
|
|||||||
|
|
||||||
Sanctum::actingAs($user);
|
Sanctum::actingAs($user);
|
||||||
|
|
||||||
$this->postJson("/api/share/$folder->id", [
|
$this->postJson("/api/share", [
|
||||||
'isPassword' => false,
|
'isPassword' => false,
|
||||||
'permission' => 'editor',
|
'permission' => 'editor',
|
||||||
'type' => 'folder',
|
'type' => 'folder',
|
||||||
|
|||||||
Reference in New Issue
Block a user