Commit Graph

12 Commits

Author SHA1 Message Date
root 96e9d944dd fix: use concrete anonymous class instead of Mockery for AttendanceMailerService binding in setUp
API CI/CD / Validate (composer + pint) (push) Successful in 2m6s
API CI/CD / Test (PHPUnit) (push) Failing after 2m27s
API CI/CD / Build frontend assets (push) Successful in 2m23s
API CI/CD / Security audit (push) Successful in 32s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
Mockery's lifecycle (created in setUp, closed in tearDown) may
interfere with the container binding across tests. Using a plain
anonymous class avoids this issue entirely.
2026-06-22 02:28:17 -04:00
root f3f13f5d01 fix: bind AttendanceMailerService mock in setUp to prevent controller resolution failure
API CI/CD / Validate (composer + pint) (push) Successful in 2m13s
API CI/CD / Test (PHPUnit) (push) Failing after 2m29s
API CI/CD / Build frontend assets (push) Successful in 2m22s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been cancelled
API CI/CD / Security audit (push) Has been cancelled
The previous approach of only mocking AttendanceTrackingService in
individual tests was not sufficient. The controller is resolved during
route middleware gathering (controllerMiddleware), which happens before
the test method body executes. By binding the AttendanceMailerService
interface to a mock in setUp, the full dependency chain is satisfied
regardless of whether the service-level mock is used.
2026-06-22 02:15:59 -04:00
root cf8ecc475b fix: resolve test failures for Sanctum auth guard and AttendanceMailerService binding
API CI/CD / Validate (composer + pint) (push) Successful in 2m12s
API CI/CD / Test (PHPUnit) (push) Failing after 2m29s
API CI/CD / Build frontend assets (push) Successful in 2m19s
API CI/CD / Security audit (push) Successful in 32s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
- Add SanctumServiceProvider explicitly to bootstrap/providers.php
  to ensure sanctum auth driver is registered in CI environments

- Add mockService() to 3 validation tests that were missing it
  (test_record_returns_validation_errors_for_bad_payload,
   test_send_manual_email_validates_payload,
   test_save_notification_note_validates_payload)
  to prevent container resolution failure during middleware gathering

- Update test URLs from /api/attendance-tracking/ to /api/v1/attendance-tracking/
  to match current route structure
2026-06-22 01:55:02 -04:00
root 5ead80fdc7 fix tests 2026-06-11 11:46:12 -04:00
root 6def9993da fix gitlab tests 2026-06-09 02:32:58 -04:00
root 20a0b6c4e5 Fix Pint formatting 2026-06-09 01:25:14 -04:00
root 6be4875c5e add tests batch 20 2026-06-09 01:03:53 -04:00
root b5fd4a4ca1 Fix Laravel Pint formatting 2026-06-09 00:03:03 -04:00
root 8d4d610b82 add test batches 2026-06-08 23:45:55 -04:00
root c792b8be05 Fix Laravel Pint formatting 2026-06-08 23:30:22 -04:00
root d76c871cb7 add controllers, servoices 2026-03-09 02:52:13 -04:00
root c8de5f7edc reconstruction of the project 2026-03-08 16:33:24 -04:00