fix failed tests
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 6m55s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 50s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 6m55s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 50s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Tests\Unit\Services\Teachers;
|
||||
|
||||
use App\Services\ApplicationUrlService;
|
||||
use App\Services\SemesterRangeService;
|
||||
use App\Services\Semesters\SemesterConfigService;
|
||||
use App\Services\Staff\StaffTimeOffLinkService;
|
||||
@@ -25,7 +26,8 @@ class TeacherAbsenceServiceTest extends TestCase
|
||||
$service = new TeacherAbsenceService(
|
||||
new TeacherConfigService,
|
||||
new SemesterRangeService(new SemesterConfigService),
|
||||
new StaffTimeOffLinkService
|
||||
new StaffTimeOffLinkService,
|
||||
new ApplicationUrlService
|
||||
);
|
||||
|
||||
$data = $service->formData($teacherId);
|
||||
@@ -44,7 +46,8 @@ class TeacherAbsenceServiceTest extends TestCase
|
||||
$service = new TeacherAbsenceService(
|
||||
new TeacherConfigService,
|
||||
new SemesterRangeService(new SemesterConfigService),
|
||||
new StaffTimeOffLinkService
|
||||
new StaffTimeOffLinkService,
|
||||
new ApplicationUrlService
|
||||
);
|
||||
|
||||
$date = $service->formData($teacherId)['available_dates'][0];
|
||||
|
||||
Reference in New Issue
Block a user