fix parent pages to adopt the school year logic
Tests / PHPUnit (push) Successful in 1m20s

This commit is contained in:
root
2026-07-17 00:02:53 -04:00
parent a5517b516a
commit 539d0eb220
12 changed files with 258 additions and 51 deletions
@@ -99,6 +99,7 @@ final class SchoolYearContextServiceTest extends CIUnitTestCase
session()->set('selected_school_year_id', 1);
session()->set('class_section_id', 44);
session()->set('semester', 'Fall');
session()->set('active_school_year', '2025-2026');
$service = new SchoolYearContextService(new SchoolYearContextFakeModel([
1 => ['id' => 1, 'name' => '2025-2026', 'status' => 'closed'],
@@ -113,5 +114,6 @@ final class SchoolYearContextServiceTest extends CIUnitTestCase
$this->assertNull(session()->get('selected_school_year_id'));
$this->assertNull(session()->get('class_section_id'));
$this->assertNull(session()->get('semester'));
$this->assertNull(session()->get('active_school_year'));
}
}