diff --git a/.env.testing b/.env.testing index 22a74af0..48d5fdc7 100644 --- a/.env.testing +++ b/.env.testing @@ -1,6 +1,6 @@ APP_NAME=Laravel APP_ENV=local -APP_KEY=base64:Shf3vEB/Up0FKetshDU3OwCZuv01XG8fb/3k26qHxqg= +APP_KEY=base64:DZMmPFCbaykO5HNb9ltj1PKX/WKGylZf0s/ghUWUCGs= APP_DEBUG=true APP_URL=http://localhost APP_DEMO=false diff --git a/src/App/Users/Notifications/ResetPassword.php b/src/App/Users/Notifications/ResetPassword.php index f1a9d795..6c7194d3 100644 --- a/src/App/Users/Notifications/ResetPassword.php +++ b/src/App/Users/Notifications/ResetPassword.php @@ -12,8 +12,8 @@ class ResetPassword extends Notification /** * Create a new notification instance. */ - private function __construct( - private string $token + public function __construct( + public string $token ) {} /** diff --git a/tests/Domain/Sharing/UserShareTest.php b/tests/Domain/Sharing/UserShareTest.php index 63021b0e..cd58dd00 100644 --- a/tests/Domain/Sharing/UserShareTest.php +++ b/tests/Domain/Sharing/UserShareTest.php @@ -40,7 +40,7 @@ class UserShareTest extends TestCase $this ->actingAs($user) - ->postJson("/api/share/$file->id", [ + ->postJson("/api/share", [ 'isPassword' => false, 'permission' => 'editor', 'type' => 'file', @@ -75,7 +75,7 @@ class UserShareTest extends TestCase $this ->actingAs($user) - ->postJson("/api/share/$folder->id", [ + ->postJson("/api/share", [ 'isPassword' => false, 'permission' => 'editor', 'type' => 'folder', @@ -110,7 +110,7 @@ class UserShareTest extends TestCase $this ->actingAs($user) - ->postJson("/api/share/$folder->id", [ + ->postJson("/api/share", [ 'isPassword' => true, 'password' => 'secret', 'permission' => 'editor', @@ -150,7 +150,7 @@ class UserShareTest extends TestCase $this ->actingAs($user) - ->postJson("/api/share/$folder->id", [ + ->postJson("/api/share", [ 'isPassword' => false, 'permission' => 'editor', 'type' => 'folder', @@ -178,7 +178,7 @@ class UserShareTest extends TestCase $this ->actingAs($user) - ->postJson("/api/share/$folder->id", [ + ->postJson("/api/share", [ 'isPassword' => false, 'permission' => 'editor', 'type' => 'folder', @@ -206,7 +206,7 @@ class UserShareTest extends TestCase Sanctum::actingAs($user); - $this->postJson("/api/share/$folder->id", [ + $this->postJson("/api/share", [ 'isPassword' => false, 'permission' => 'editor', 'type' => 'folder', @@ -237,7 +237,7 @@ class UserShareTest extends TestCase Sanctum::actingAs($user); - $this->postJson("/api/share/$folder->id", [ + $this->postJson("/api/share", [ 'isPassword' => false, 'permission' => 'editor', 'type' => 'folder',