Kész tesztelés

This commit is contained in:
Sándor Máté Magony
2025-05-02 16:57:39 +02:00
parent aac71b9c74
commit 7b3467ee70
8 changed files with 215 additions and 23 deletions

View File

@@ -18,25 +18,11 @@ class UserFactory extends Factory
public function definition()
{
return [
'name' => $this->faker->name(),
'nev' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'remember_token' => Str::random(10),
'felh_nev' => $this->faker->userName(),
'jelszo' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'is_admin' => false,
];
}
/**
* Indicate that the model's email address should be unverified.
*
* @return \Illuminate\Database\Eloquent\Factories\Factory
*/
public function unverified()
{
return $this->state(function (array $attributes) {
return [
'email_verified_at' => null,
];
});
}
}