Ejemplo n.º 1
0
 public function testInsertOrgChannelField()
 {
     global $logger;
     $logger = new ShopbookLogger();
     $logger->enabled = true;
     $logger->debug("Setting up PHP Unit Testing ...");
     $dataField = new DataField("age", 1, 0, "2014-12-1 12:12:12", "", "nothg", array(4, 1, 3));
     //$dataFieldName, $dataFieldsTypeId, $defaultValue, $addedOn, $lastUpdate, $description, $fieldValidators, $id = null
     $arr = DAOFactory::getDataFieldsDAO()->insertDataField($dataField);
     // Act
     //$b = $a->negate();
     // Assert
     //$this->assertEquals(-1, $b->getAmount());
 }
Ejemplo n.º 2
0
 public static function loadFromCachedDataField($cachedDF)
 {
     global $logger;
     self::$dataFieldDAO = DAOFactory::getDataFieldsDAO();
     $logger->debug("CHECK - load Cached DataField" . print_r($cachedDF, true));
     return self::$dataFieldDAO->convertFromCacheObject($cachedDF);
 }