/** * Gets kaltura object id and type and return the needed Katura Object * * @param string $objectId * @param string $objectType * @return KalturaUnitTestDataObject - returns the unit test object with propel object from the DB */ private function getUnitTestDataObject(KalturaUnitTestDataObject $unitTestObjectIdentifier) { $unitTestDataObject = new KalturaUnitTestDataObject($unitTestObjectIdentifier->getType(), $unitTestObjectIdentifier->additionalData, $unitTestObjectIdentifier->dataObject); $objectType = $unitTestObjectIdentifier->getType(); $objectId = $unitTestObjectIdentifier->additionalData["key"]; $unitTestDataObject->dataObject = KalturaUnitTestDataGenerator::getObjectByTypeAndId($objectType, $objectId, $unitTestDataObject->additionalData); return $unitTestDataObject; }