コード例 #1
0
ファイル: ilMDTest.php プロジェクト: arlendotcn/ilias
 /**
  * test General
  * @group IL_Init
  * @return
  */
 public function testGeneral()
 {
     include_once './Services/MetaData/classes/class.ilMDGeneral.php';
     include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
     $con = new ilMDGeneral(1, 2, 'xxx');
     $con->setCoverage('Easy');
     $ret = $con->save();
     $this->assertGreaterThan(0, $ret);
     $con->setCoverage('Medium');
     $con->update();
     $con->read();
     $desc = $con->getCoverage();
     $this->assertEquals('Medium', $desc);
     $con->delete();
 }