assertTrue(SchoolYearTableRegistry::isGlobal($table), $table); $this->assertFalse(SchoolYearTableRegistry::isYearScoped($table), $table); } } public function test_identity_tables_are_classified_separately_from_year_owned_tables(): void { foreach (['students', 'families', 'parents', 'teachers', 'staff'] as $table) { $this->assertTrue(SchoolYearTableRegistry::isIdentityWithYearRelation($table), $table); $this->assertFalse(SchoolYearTableRegistry::isYearScoped($table), $table); $this->assertFalse(SchoolYearTableRegistry::isGlobal($table), $table); } } public function test_year_owned_and_context_tables_are_explicit(): void { $this->assertTrue(SchoolYearTableRegistry::isYearScoped('student_class')); $this->assertTrue(SchoolYearTableRegistry::isYearScoped('payments')); $this->assertTrue(SchoolYearTableRegistry::isContext('notifications')); $this->assertTrue(SchoolYearTableRegistry::isContext('payment_notification_logs')); } }