Refactor: Enforce type safety, fix close deadlock, implement assignee restrictions and notify admin fallbacks
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled

This commit is contained in:
2026-05-20 10:42:30 +00:00
parent 44a7f53deb
commit fc9158b928
16 changed files with 409 additions and 10 deletions

View File

@@ -116,11 +116,11 @@ test('cskh import command processes rows correctly in dry run and active modes',
$handover = Handover::where('product_id', $productA->id)->first();
expect($handover)->not->toBeNull();
expect($handover->handover_date)->toBe('2026-01-01');
expect($handover->handover_date->format('Y-m-d'))->toBe('2026-01-01');
$contract = Contract::where('product_id', $productA->id)->first();
expect($contract)->not->toBeNull();
expect($contract->type)->toBe('lease'); // type is a string 'lease'
expect($contract->type->value)->toBe('lease'); // type is ContractType enum
// Clean up temporary file
@unlink($csvPath);