mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Dusk: improve speed and safety (#13370)
* Dusk: improve speed Instead of refreshing the database between tests, just cleanup all side effects. Update UserFactory to upstream so hash never has to be generated for default * Actually, migrate, but not fresh
This commit is contained in:
@@ -22,14 +22,12 @@ class UserFactory extends Factory
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
static $password;
|
||||
|
||||
return [
|
||||
'auth_type' => 'mysql',
|
||||
'username' => $this->faker->unique()->userName,
|
||||
'realname' => $this->faker->name,
|
||||
'email' => $this->faker->safeEmail,
|
||||
'password' => $password ?: $password = bcrypt('secret'),
|
||||
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
|
||||
'level' => 1,
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user