mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 17:52:15 +01:00
Added time estimates for projects and tasks, fixes ST-283
This commit is contained in:
committed by
Gregor Vostrak
parent
78ea8a673b
commit
a820d8540f
@@ -33,9 +33,19 @@ class ProjectFactory extends Factory
|
||||
'archived_at' => null,
|
||||
'client_id' => null,
|
||||
'organization_id' => Organization::factory(),
|
||||
'estimated_time' => null,
|
||||
];
|
||||
}
|
||||
|
||||
public function withEstimatedTime(): self
|
||||
{
|
||||
return $this->state(function (array $attributes): array {
|
||||
return [
|
||||
'estimated_time' => $this->faker->randomNumber(3),
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function billable(): self
|
||||
{
|
||||
return $this->state(function (array $attributes): array {
|
||||
|
||||
Reference in New Issue
Block a user