New Tests

This commit is contained in:
Mark Gregory
2026-06-10 15:47:14 +01:00
parent 57a514857c
commit 17683e1a21
150 changed files with 23 additions and 10888 deletions
@@ -42,10 +42,17 @@ class PlatformSeeder extends Seeder
]
);
$warehouse = Warehouse::updateOrCreate(
['company_id' => $company->id, 'code' => 'MPBA-MAIN'],
['name' => 'MPBA Main Warehouse', 'status' => 'active', 'timezone' => 'Europe/London']
);
$warehouse = Warehouse::firstOrNew([
'company_id' => $company->id,
'code' => 'MPBA-MAIN',
]);
$warehouse->forceFill([
'uuid' => $warehouse->uuid ?: (string) Str::uuid(),
'name' => 'MPBA Main Warehouse',
'status' => 'active',
'timezone' => 'Europe/London',
])->save();
WarehouseValidationRule::updateOrCreate(
['warehouse_id' => $warehouse->id, 'rule_key' => 'stock.location.required'],