getId()); self::assertEquals(null, $obj->department); self::assertNull($obj->getResponsible()); self::assertNull($obj->getDeputy()); } /** * @covers Modules\RiskManagement\Models\Department * @group module */ public function testSetGet() : void { $obj = new Department(); $obj->department = new NullOrgDepartment(2); self::assertEquals(2, $obj->department->getId()); $obj->setResponsible(1); self::assertEquals(1, $obj->getResponsible()); $obj->setDeputy(3); self::assertEquals(3, $obj->getDeputy()); } }