Added deleted factory for tests
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
61f76dedc6
commit
d27bde6047
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue