part fix for tests
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user