fix test issues
API CI/CD / Validate (composer + pint) (push) Successful in 3m5s
API CI/CD / Test (PHPUnit) (push) Failing after 7m12s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 49s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 3m5s
API CI/CD / Test (PHPUnit) (push) Failing after 7m12s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 49s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -6,7 +6,9 @@ use App\Models\ClassProgressReport;
|
||||
use App\Models\User;
|
||||
use App\Services\ClassProgress\ClassProgressAttachmentService;
|
||||
use App\Services\ClassProgress\ClassProgressMutationService;
|
||||
use App\Services\ClassProgress\ClassProgressQueryService;
|
||||
use App\Services\ClassProgress\ClassProgressRuleService;
|
||||
use App\Services\SchoolYears\SchoolYearContextService;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Tests\TestCase;
|
||||
@@ -23,7 +25,9 @@ class ClassProgressMutationServiceTest extends TestCase
|
||||
|
||||
$service = new ClassProgressMutationService(
|
||||
new ClassProgressRuleService,
|
||||
new ClassProgressAttachmentService
|
||||
new ClassProgressAttachmentService,
|
||||
app(ClassProgressQueryService::class),
|
||||
app(SchoolYearContextService::class),
|
||||
);
|
||||
|
||||
$payload = [
|
||||
@@ -48,7 +52,9 @@ class ClassProgressMutationServiceTest extends TestCase
|
||||
|
||||
$service = new ClassProgressMutationService(
|
||||
new ClassProgressRuleService,
|
||||
new ClassProgressAttachmentService
|
||||
new ClassProgressAttachmentService,
|
||||
app(ClassProgressQueryService::class),
|
||||
app(SchoolYearContextService::class),
|
||||
);
|
||||
|
||||
$updated = $service->updateReport($report, ['status' => 'behind'], []);
|
||||
@@ -61,7 +67,9 @@ class ClassProgressMutationServiceTest extends TestCase
|
||||
$report = ClassProgressReport::factory()->create();
|
||||
$service = new ClassProgressMutationService(
|
||||
new ClassProgressRuleService,
|
||||
new ClassProgressAttachmentService
|
||||
new ClassProgressAttachmentService,
|
||||
app(ClassProgressQueryService::class),
|
||||
app(SchoolYearContextService::class),
|
||||
);
|
||||
|
||||
$service->deleteReport($report);
|
||||
|
||||
Reference in New Issue
Block a user