rel = new class() extends RelationAbstract { public function getRelation() { return new Modules\Admin\Models\Group(); } public function jsonSerialize() : mixed { return []; } }; } #[\PHPUnit\Framework\Attributes\Group('module')] public function testDefault() : void { self::assertEquals(0, $this->rel->id); self::assertEquals(DutyType::TO, $this->rel->getDuty()); } #[\PHPUnit\Framework\Attributes\Group('module')] public function testDutyInputOutput() : void { $this->rel->setDuty(DutyType::CC); self::assertEquals(DutyType::CC, $this->rel->getDuty()); } }