test: fixed the password validator test (#612)

This commit is contained in:
Kyrch
2023-11-18 01:34:44 -03:00
committed by GitHub
parent 6aa43bbdf9
commit 1e8e816abc
@@ -52,7 +52,7 @@ class CreateNewUserTest extends TestCase
$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),
@@ -82,7 +82,7 @@ class CreateNewUserTest extends TestCase
$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,
@@ -104,7 +104,7 @@ class CreateNewUserTest extends TestCase
{
$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(),
@@ -140,7 +140,7 @@ class CreateNewUserTest extends TestCase
$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(),
@@ -170,7 +170,7 @@ class CreateNewUserTest extends TestCase
$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(),
@@ -208,7 +208,7 @@ class CreateNewUserTest extends TestCase
$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(),
@@ -236,7 +236,7 @@ class CreateNewUserTest extends TestCase
$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(),
@@ -262,7 +262,7 @@ class CreateNewUserTest extends TestCase
$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(),
@@ -294,7 +294,7 @@ class CreateNewUserTest extends TestCase
$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(),