mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Added deleted factory for tests
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
61f76dedc6
commit
d27bde6047
|
@ -38,6 +38,16 @@ class UserFactory extends Factory
|
|||
];
|
||||
}
|
||||
|
||||
public function deletedUser()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'deleted_at' => $this->faker->dateTime(),
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public function firstAdmin()
|
||||
{
|
||||
return $this->state(function () {
|
||||
|
|
Loading…
Reference in a new issue