Esempio n. 1
0
 /**
  * test MetaData
  * @group IL_Init
  * @return
  */
 public function testTypicalAgeRange()
 {
     include_once './Services/MetaData/classes/class.ilMDTypicalAgeRange.php';
     include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
     $con = new ilMDTypicalAgeRange(1, 2, 'xxx');
     $con->setTypicalAgeRange('12-22');
     $ret = $con->save();
     $this->assertGreaterThan(0, $ret);
     $con->setTypicalAgeRange('12-14');
     $con->update();
     $con->read();
     $desc = $con->getTypicalAgeRange();
     $this->assertEquals('12-14', $desc);
     $con->delete();
 }