fix test issues
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 2m2s
Tests / PHPUnit (push) Failing after 1m19s

This commit is contained in:
root
2026-08-24 22:14:05 -04:00
parent 9036fcb1f5
commit 5f5afe97ad
2 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -2348,13 +2348,17 @@ final class EnrollmentTransitionService
$overridableFailed = array_values(array_diff($failedCodes, self::NON_OVERRIDABLE_RULE_CODES));
$recordedCodes = json_decode((string) ($exception['bypassed_rule_codes_json'] ?? ''), true);
$recordedCodes = is_array($recordedCodes) ? array_values(array_filter(array_map('strval', $recordedCodes))) : [];
$applicableCodes = array_values(array_intersect($overridableFailed, $recordedCodes));
if ($applicableCodes === []) {
return;
}
$evaluation['admin_exception'] = [
'id' => (int) $exception['id'],
'reason_code' => (string) ($exception['reason_code'] ?? ''),
'source_school_year' => $sourceSchoolYear,
'status' => (string) ($exception['status'] ?? ''),
'bypassed_rule_codes' => $overridableFailed !== [] ? $overridableFailed : $recordedCodes,
'bypassed_rule_codes' => $applicableCodes,
];
$evaluation['decision'] = self::DECISION_EXCEPTION_ELIGIBLE;
$evaluation['parent_enrollment_allowed'] = true;