Fix last-name exception carry-forward and parent action label
Tests / PHPUnit (push) Successful in 55s
Tests / PHPUnit (push) Successful in 55s
This commit is contained in:
@@ -260,7 +260,7 @@ final class EnrollmentTransitionServiceTest extends TestCase
|
||||
'warnings' => [],
|
||||
];
|
||||
|
||||
$this->invoke($service, 'applyCarriedForwardLastNameException', [&$evaluation, 9, '2025-2026', '2026-2027']);
|
||||
$this->invoke($service, 'applyCarriedForwardLastNameException', [&$evaluation, 9, 1, '2025-2026', '2026-2027']);
|
||||
|
||||
$this->assertNotContains('SIBLING_LAST_NAME_MISMATCH', $evaluation['blocking_rule_codes']);
|
||||
$this->assertContains('LAST_NAME_EXCEPTION_CARRIED_FORWARD', $evaluation['warning_rule_codes']);
|
||||
@@ -327,7 +327,7 @@ final class EnrollmentTransitionServiceTest extends TestCase
|
||||
'blockers' => ['Linked siblings have different last names. Please contact administration to review the family record.'],
|
||||
];
|
||||
|
||||
$this->invoke($service, 'applyCarriedForwardLastNameException', [&$evaluation, 9, '2025-2026', '2026-2027']);
|
||||
$this->invoke($service, 'applyCarriedForwardLastNameException', [&$evaluation, 9, 1, '2025-2026', '2026-2027']);
|
||||
|
||||
$this->assertContains('SIBLING_LAST_NAME_MISMATCH', $evaluation['blocking_rule_codes']);
|
||||
$this->assertFalse($evaluation['last_name_exception_carry_forward']['eligible']);
|
||||
@@ -341,7 +341,7 @@ final class EnrollmentTransitionServiceTest extends TestCase
|
||||
'blocking_rule_codes' => ['SIBLING_LAST_NAME_MISMATCH', 'OUTSTANDING_BALANCE_BLOCKED'],
|
||||
];
|
||||
|
||||
$this->invoke($service, 'applyCarriedForwardLastNameException', [&$evaluation, 9, '2025-2026', '2026-2027']);
|
||||
$this->invoke($service, 'applyCarriedForwardLastNameException', [&$evaluation, 9, 1, '2025-2026', '2026-2027']);
|
||||
|
||||
$this->assertContains('SIBLING_LAST_NAME_MISMATCH', $evaluation['blocking_rule_codes']);
|
||||
$this->assertArrayNotHasKey('last_name_exception_carry_forward', $evaluation);
|
||||
|
||||
Reference in New Issue
Block a user