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
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:
+17
-2
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user