apply the school year concept
Tests / PHPUnit (push) Failing after 1m19s

This commit is contained in:
root
2026-07-14 00:59:00 -04:00
parent 504c3bc9f9
commit feb1b29a32
73 changed files with 4288 additions and 620 deletions
@@ -17,11 +17,13 @@ final class SchoolYearContextTest extends CIUnitTestCase
$this->assertSame('2025-2026', $context->yearName());
}
public function testClosedAndArchivedContextsAreReadonly(): void
public function testNonActiveContextsAreReadonly(): void
{
$this->assertTrue((new SchoolYearContext(5, '2026-2027', 'draft'))->isReadonly());
$this->assertTrue((new SchoolYearContext(6, '2026-2027', 'closing'))->isReadonly());
$this->assertTrue((new SchoolYearContext(2, '2023-2024', 'closed'))->isReadonly());
$this->assertTrue((new SchoolYearContext(1, '2022-2023', 'archived'))->isReadonly());
$this->assertFalse((new SchoolYearContext(5, '2026-2027', 'draft'))->isReadonly());
$this->assertTrue((new SchoolYearContext(1, '2022-2023', 'archived'))->isHistorical());
}
public function testArrayRepresentationIncludesReadonlyState(): void