Skip to content

Commit

Permalink
test: fixed the password validator test (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrch authored Nov 18, 2023
1 parent 6aa43bb commit 1e8e816
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Feature/Actions/Fortify/CreateNewUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testUsernameAlphaDash(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker->password(20),
Expand Down Expand Up @@ -82,7 +82,7 @@ public function testUsernameUnique(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $name,
Expand All @@ -104,7 +104,7 @@ public function testCreated(): void
{
$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker()->word(),
Expand Down Expand Up @@ -140,7 +140,7 @@ public function testCreatedIfNotFlaggedByOpenAI(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker()->word(),
Expand Down Expand Up @@ -170,7 +170,7 @@ public function testCreatedIfOpenAIFails(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker()->word(),
Expand Down Expand Up @@ -208,7 +208,7 @@ public function testValidationErrorWhenFlaggedByOpenAI(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker()->word(),
Expand Down Expand Up @@ -236,7 +236,7 @@ public function testDisposableEmail(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker()->word(),
Expand All @@ -262,7 +262,7 @@ public function testIndisposableEmail(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker()->word(),
Expand Down Expand Up @@ -294,7 +294,7 @@ public function testEmailUnique(): void

$action = new CreateNewUser();

$password = $this->faker->password(20);
$password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']);

$action->create([
User::ATTRIBUTE_NAME => $this->faker->word(),
Expand Down

0 comments on commit 1e8e816

Please sign in to comment.