f3f13f5d01
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.