completed story 1.1 with QA tests and fixes

This commit is contained in:
Naser Mansour
2025-12-26 13:46:39 +02:00
parent 028ce573b9
commit 84d9c2f66a
57 changed files with 2193 additions and 85 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
use App\Enums\PaymentStatus;
test('payment status has correct cases', function () {
expect(PaymentStatus::cases())->toHaveCount(3);
});
test('payment status pending has correct value', function () {
expect(PaymentStatus::Pending->value)->toBe('pending');
});
test('payment status received has correct value', function () {
expect(PaymentStatus::Received->value)->toBe('received');
});
test('payment status not applicable has correct value', function () {
expect(PaymentStatus::NotApplicable->value)->toBe('na');
});