/** * Gets kaltura object id and type and return the needed Katura Object * * @param string $objectId * @param string $objectType * @return KalturaTestDataObject - returns the test object with propel object from the DB */ private function getTestDataObject(KalturaTestDataObject $testObjectIdentifier) { $testDataObject = new KalturaTestDataObject($testObjectIdentifier->getType(), $testObjectIdentifier->getAdditionalData(), $testObjectIdentifier->getDataObject()); $objectType = $testObjectIdentifier->getType(); $additionalData = $testObjectIdentifier->getAdditionalData(); $objectId = $additionalData["key"]; $testDataObject->setDataObject(KalturaTestDataGenerator::getObjectByTypeAndId($objectType, $objectId, $testDataObject->getAdditionalData())); return $testDataObject; }