diff --git a/default-structure/tests/Feature/ResetPasswordControllerTest.php b/default-structure/tests/Feature/ResetPasswordControllerTest.php index 7bf9994..fe80489 100644 --- a/default-structure/tests/Feature/ResetPasswordControllerTest.php +++ b/default-structure/tests/Feature/ResetPasswordControllerTest.php @@ -27,7 +27,7 @@ public function setUp(): void public function testSubmitPasswordReset() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; + $password = $this->faker->password(12); $this ->post(route('api.reset.password'), [ @@ -84,12 +84,12 @@ public function testSubmitPasswordResetInvalidEmail() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; + $password = $this->faker->password(12); $this ->post(route('api.reset.password'), [ 'token' => $token, - 'email' => $this->faker->safeEmail, + 'email' => $this->faker->word, 'password' => $password, 'password_confirmation' => $password, ]) @@ -109,7 +109,7 @@ public function testSubmitPasswordResetEmailNotFound() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; + $password = $this->faker->password(12); $this ->post(route('api.reset.password'), [ @@ -129,8 +129,8 @@ public function testSubmitPasswordResetEmailNotFound() public function testSubmitPasswordResetPasswordMismatch() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; - $password_confirmation = $this->faker->password; + $password = $this->faker->password(12); + $password_confirmation = $this->faker->password(12); $this ->post(route('api.reset.password'), [ diff --git a/modular-structure/app/Domain/Users/Tests/Feature/ResetPasswordControllerTest.php b/modular-structure/app/Domain/Users/Tests/Feature/ResetPasswordControllerTest.php index 2ac628a..d676e31 100644 --- a/modular-structure/app/Domain/Users/Tests/Feature/ResetPasswordControllerTest.php +++ b/modular-structure/app/Domain/Users/Tests/Feature/ResetPasswordControllerTest.php @@ -27,7 +27,7 @@ public function setUp(): void public function testSubmitPasswordReset() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; + $password = $this->faker->password(12); $this ->post(route('api.reset.password'), [ @@ -84,7 +84,7 @@ public function testSubmitPasswordResetInvalidEmail() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; + $password = $this->faker->password(12); $this ->post(route('api.reset.password'), [ @@ -109,7 +109,7 @@ public function testSubmitPasswordResetEmailNotFound() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; + $password = $this->faker->password(12); $this ->post(route('api.reset.password'), [ @@ -129,8 +129,8 @@ public function testSubmitPasswordResetEmailNotFound() public function testSubmitPasswordResetPasswordMismatch() { $token = Password::broker()->createToken($this->user); - $password = $this->faker->password; - $password_confirmation = $this->faker->password; + $password = $this->faker->password(12); + $password_confirmation = $this->faker->password(12); $this ->post(route('api.reset.password'), [