fix test errors
API CI/CD / Validate (composer + pint) (push) Successful in 2m47s
API CI/CD / Test (PHPUnit) (push) Failing after 3m8s
API CI/CD / Build frontend assets (push) Failing after 5m22s
API CI/CD / Security audit (push) Failing after 34s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-06-26 15:37:03 -04:00
parent 2ad6e9cf02
commit 5e35fefd69
56 changed files with 313 additions and 86 deletions
@@ -72,11 +72,26 @@ class ScenarioUFinanceBillingPaymentRefundAndInstallmentLifecycleTest extends Te
$this->postJson('/api/v1/finance/fees/tuition-total', [
'parent_id' => $parentId,
'student_ids' => [$studentId],
'students' => [
[
'student_id' => $studentId,
'class_section_id' => $world['class_section_id'],
'enrollment_status' => 'enrolled',
'admission_status' => 'accepted',
],
],
'school_year' => self::E2E_SCHOOL_YEAR,
])->assertSuccessful();
$this->postJson('/api/v1/finance/fees/family-balance', [
'parent_id' => $parentId,
'students' => [
[
'student_id' => $studentId,
'class_section_id' => $world['class_section_id'],
'enrollment_status' => 'enrolled',
'admission_status' => 'accepted',
],
],
'school_year' => self::E2E_SCHOOL_YEAR,
])->assertSuccessful();
}
@@ -104,7 +119,7 @@ class ScenarioUFinanceBillingPaymentRefundAndInstallmentLifecycleTest extends Te
]);
$this->assertNoServerError($plan, 'Installment plan creation');
$planId = (int) DB::table('installment_plans')
$planId = (int) DB::table('invoice_installment_plans')
->where('invoice_id', $invoiceId)
->value('id');
if ($planId > 0) {
@@ -123,7 +123,7 @@ class ScenarioYFamilyGuardianAuthorizedUserAndWhatsappLifecycleTest extends Test
]);
$this->assertSuccessfulOrValidation($link, 'WhatsApp link creation');
$linkId = (int) DB::table('whatsapp_links')
$linkId = (int) DB::table('whatsapp_group_links')
->where('title', 'E2E Parent Group')
->value('id');
if ($linkId > 0) {