Implement project board status workflow
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Ticket;
|
||||
use App\Models\TicketWorklogEntry;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<TicketWorklogEntry>
|
||||
*/
|
||||
class TicketWorklogEntryFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'actor_id' => User::factory(),
|
||||
'changes' => [
|
||||
'from' => 'Backlog',
|
||||
'to' => 'In Progress',
|
||||
],
|
||||
'entry_type' => 'status_changed',
|
||||
'summary' => 'Moved from Backlog to In Progress.',
|
||||
'ticket_id' => Ticket::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user