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
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
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
|
||||
use App\Providers\AppServiceProvider;
|
||||
use App\Providers\EventServiceProvider;
|
||||
use Laravel\Sanctum\SanctumServiceProvider;
|
||||
|
||||
return [
|
||||
AppServiceProvider::class,
|
||||
EventServiceProvider::class,
|
||||
SanctumServiceProvider::class,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user