title = 'Name'; $obj->descriptionRaw = 'Description'; $obj->setDepartment(2); $obj->setResponsible(1); $obj->setDeputy(1); $obj->setUnit(1); ProcessMapper::create($obj); $objR = ProcessMapper::get($obj->getId()); self::assertEquals($obj->title, $objR->title); self::assertEquals($obj->descriptionRaw, $objR->descriptionRaw); self::assertEquals($obj->getResponsible(), $objR->getResponsible()); self::assertEquals($obj->getDeputy(), $objR->getDeputy()); self::assertEquals($obj->getDepartment(), $objR->getDepartment()->getId()); self::assertEquals($obj->getUnit(), $objR->getUnit()->getId()); } }