part fix for tests

This commit is contained in:
Mark Gregory
2026-06-23 16:49:30 +01:00
parent 3b0393a1fe
commit 4765c34889
6 changed files with 119 additions and 19 deletions
@@ -30,7 +30,14 @@ final class TicketFactory extends Factory
*/
public function definition(): array
{
$company = Company::factory()->create();
$company = Company::query()->create([
'name' => 'Helpdesk Factory Company '.Str::random(8),
'slug' => 'helpdesk-factory-company-'.Str::lower(Str::random(8)),
'status' => 'active',
'timezone' => 'Europe/London',
'billing_email' => 'helpdesk-factory-'.Str::lower(Str::random(8)).'@example.test',
'is_system_company' => false,
]);
$user = User::factory()->create([
'company_id' => $company->getKey(),
]);