rel = new class() extends RelationAbstract { public function getRelation() { return new Modules\Admin\Models\Group(); } public function jsonSerialize() : mixed { return []; } }; } /** * @covers \Modules\Tasks\Models\RelationAbstract * @group module */ public function testDefault() : void { self::assertEquals(0, $this->rel->id); self::assertEquals(DutyType::TO, $this->rel->getDuty()); } /** * @covers \Modules\Tasks\Models\RelationAbstract * @group module */ public function testDutyInputOutput() : void { $this->rel->setDuty(DutyType::CC); self::assertEquals(DutyType::CC, $this->rel->getDuty()); } }