39 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
50 include_once
'./Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php';
54 $cpr->setDescription(
"2");
55 $cpr->setLanguage(
'en');
56 $cpr->setCopyright(
"3");
61 $entry = $cpr->getEntryId();
62 $this->assertGreaterThan(0,$entry);
65 $ret = $cpr->getTitle();
66 $this->assertEquals(
$ret,
'1');
68 $ret = $cpr->getDescription();
69 $this->assertEquals(
$ret,
'2');
71 $ret = $cpr->getCopyright();
72 $this->assertEquals(
$ret,
'3');
74 $ret = $cpr->getLanguage();
75 $this->assertEquals(
$ret,
'en');
90 include_once
'./Services/MetaData/classes/class.ilMDAnnotation.php';
91 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
94 $ann->setDescription(
"desc");
96 $ann->setEntity(
'ent');
97 $ann->setDate(
'date');
99 $this->assertGreaterThan(0,
$ret);
101 $ann->setDescription(
'desc2');
104 $desc = $ann->getDescription();
105 $this->assertEquals(
'desc2',$desc);
117 include_once
'./Services/MetaData/classes/class.ilMDClassification.php';
118 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
121 $ann->setDescription(
"desc");
123 $ann->setPurpose(
'purp');
125 $this->assertGreaterThan(0,
$ret);
127 $ann->setDescription(
'desc2');
130 $desc = $ann->getDescription();
131 $this->assertEquals(
'desc2',$desc);
142 include_once
'./Services/MetaData/classes/class.ilMDContribute.php';
143 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
146 $con->setDate(
'date');
147 $con->setRole(
'ScriptWriter');
149 $this->assertGreaterThan(0,
$ret);
151 $con->setDate(
'desc2');
154 $desc = $con->getDate();
155 $this->assertEquals(
'desc2',$desc);
166 include_once
'./Services/MetaData/classes/class.ilMDDescription.php';
167 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
170 $con->setDescription(
'date');
173 $this->assertGreaterThan(0,
$ret);
175 $con->setDescription(
'desc2');
178 $desc = $con->getDescription();
179 $this->assertEquals(
'desc2',$desc);
190 include_once
'./Services/MetaData/classes/class.ilMDEducational.php';
191 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
194 $con->setDifficulty(
'Easy');
196 $this->assertGreaterThan(0,
$ret);
198 $con->setDifficulty(
'Medium');
201 $desc = $con->getDifficulty();
202 $this->assertEquals(
'Medium',$desc);
213 include_once
'./Services/MetaData/classes/class.ilMDEntity.php';
214 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
217 $con->setEntity(
'Easy');
219 $this->assertGreaterThan(0,
$ret);
221 $con->setEntity(
'Medium');
224 $desc = $con->getEntity();
225 $this->assertEquals(
'Medium',$desc);
236 include_once
'./Services/MetaData/classes/class.ilMDFormat.php';
237 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
240 $con->setFormat(
'Easy');
242 $this->assertGreaterThan(0,
$ret);
244 $con->setFormat(
'Medium');
247 $desc = $con->getFormat();
248 $this->assertEquals(
'Medium',$desc);
259 include_once
'./Services/MetaData/classes/class.ilMDGeneral.php';
260 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
263 $con->setCoverage(
'Easy');
265 $this->assertGreaterThan(0,
$ret);
267 $con->setCoverage(
'Medium');
270 $desc = $con->getCoverage();
271 $this->assertEquals(
'Medium',$desc);
282 include_once
'./Services/MetaData/classes/class.ilMDIdentifier.php';
283 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
286 $con->setCatalog(
'Easy');
288 $this->assertGreaterThan(0,
$ret);
290 $con->setCatalog(
'Medium');
293 $desc = $con->getCatalog();
294 $this->assertEquals(
'Medium',$desc);
305 include_once
'./Services/MetaData/classes/class.ilMDIdentifier_.php';
306 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
309 $con->setCatalog(
'Easy');
311 $this->assertGreaterThan(0,
$ret);
313 $con->setCatalog(
'Medium');
316 $desc = $con->getCatalog();
317 $this->assertEquals(
'Medium',$desc);
328 include_once
'./Services/MetaData/classes/class.ilMDKeyword.php';
329 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
332 $con->setKeyword(
'Easy');
334 $this->assertGreaterThan(0,
$ret);
336 $con->setKeyword(
'Medium');
339 $desc = $con->getKeyword();
340 $this->assertEquals(
'Medium',$desc);
351 include_once
'./Services/MetaData/classes/class.ilMDLanguage.php';
352 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
357 $this->assertGreaterThan(0,
$ret);
362 $desc = $con->getLanguageCode();
363 $this->assertEquals(
'de',$desc);
374 include_once
'./Services/MetaData/classes/class.ilMDLifecycle.php';
375 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
380 $this->assertGreaterThan(0,
$ret);
385 $desc = $con->getVersion();
386 $this->assertEquals(2,$desc);
397 include_once
'./Services/MetaData/classes/class.ilMDLocation.php';
398 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
401 $con->setLocation(1);
403 $this->assertGreaterThan(0,
$ret);
405 $con->setLocation(2);
408 $desc = $con->getLocation();
409 $this->assertEquals(2,$desc);
420 include_once
'./Services/MetaData/classes/class.ilMDMetaMetadata.php';
421 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
424 $con->setMetaDataScheme(1);
426 $this->assertGreaterThan(0,
$ret);
428 $con->setMetaDataScheme(2);
431 $desc = $con->getMetaDataScheme();
432 $this->assertEquals(
'LOM v 1.0',$desc);
443 include_once
'./Services/MetaData/classes/class.ilMDRelation.php';
444 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
447 $con->setKind(
'IsVersionOf');
449 $this->assertGreaterThan(0,
$ret);
451 $con->setKind(
'HasVersion');
454 $desc = $con->getKind();
455 $this->assertEquals(
'HasVersion',$desc);
466 include_once
'./Services/MetaData/classes/class.ilMDRequirement.php';
467 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
470 $con->setBrowserName(
'Amaya');
472 $this->assertGreaterThan(0,
$ret);
474 $con->setBrowserName(
'Opera');
477 $desc = $con->getBrowserName();
478 $this->assertEquals(
'Opera',$desc);
489 include_once
'./Services/MetaData/classes/class.ilMDRights.php';
490 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
493 $con->setDescription(
'Amaya');
495 $this->assertGreaterThan(0,
$ret);
497 $con->setDescription(
'Opera');
500 $desc = $con->getDescription();
501 $this->assertEquals(
'Opera',$desc);
512 include_once
'./Services/MetaData/classes/class.ilMDTaxon.php';
513 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
516 $con->setTaxon(
'Amaya');
518 $this->assertGreaterThan(0,
$ret);
520 $con->setTaxon(
'Opera');
523 $desc = $con->getTaxon();
524 $this->assertEquals(
'Opera',$desc);
535 include_once
'./Services/MetaData/classes/class.ilMDTaxonPath.php';
536 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
539 $con->setSource(
'Amaya');
541 $this->assertGreaterThan(0,
$ret);
543 $con->setSource(
'Opera');
546 $desc = $con->getSource();
547 $this->assertEquals(
'Opera',$desc);
558 include_once
'./Services/MetaData/classes/class.ilMDTechnical.php';
559 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
562 $con->setSize(
'Amaya');
564 $this->assertGreaterThan(0,
$ret);
566 $con->setSize(
'Opera');
569 $desc = $con->getSize();
570 $this->assertEquals(
'Opera',$desc);
581 include_once
'./Services/MetaData/classes/class.ilMDTypicalAgeRange.php';
582 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
585 $con->setTypicalAgeRange(
'12-22');
587 $this->assertGreaterThan(0,
$ret);
589 $con->setTypicalAgeRange(
'12-14');
592 $desc = $con->getTypicalAgeRange();
593 $this->assertEquals(
'12-14',$desc);