10 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
11 ilUnitUtil::performInitialisation();
25 $obj2->setType(
"xxx");
27 $id2 = $obj2->getId();
29 if ($id2 == ($id + 1))
48 $this->assertEquals(
"create1-create2-create3-", $value);
60 $obj->setTitle(
"TestObject");
61 $obj->setDescription(
"TestDescription");
62 $obj->setImportId(
"imp_44");
64 $obj->createReference();
69 if ($obj->getType() ==
"")
73 if ($obj->getTitle() ==
"TestObject")
77 if ($obj->getDescription() ==
"TestDescription")
81 if ($obj->getImportId() ==
"imp_44")
85 if ($obj->getOwner() == $ilUser->getId())
91 if ($obj->getTitle() ==
"TestObject")
96 if ($obj->getCreateDate() == ($lu = $obj->getLastUpdateDate()))
100 $obj->setTitle(
"TestObject2");
105 if ($lu != ($lu2 = $obj->getLastUpdateDate()))
109 if ($obj->getTitle() ==
"TestObject2")
164 foreach ($obs as $ob)
166 if ($ob[
"obj_id"] == $ilUser->getId())
177 if ($d1 != $d2 && $d1 == $d3 && $d3 == null)
184 $this->assertEquals(
"sg1-sg2-sg3-sg4-sg5-sg6-sg7-up1-up2-".
185 "lu1-lu2-lu3-lu4-lu5-lu6-lu7-lu8-lu9-lu10-lu11-dd1-", $value);
196 $obj->setType(
"xxx");
197 $obj->setTitle(
"TestObject");
198 $obj->setDescription(
"TestDescription");
199 $obj->setImportId(
"imp_44");
201 $obj->createReference();
206 $obj->putInTree(ROOT_FOLDER_ID);
207 $obj->createRoleFolder();
208 $obj->setPermissions(ROOT_FOLDER_ID);
219 $tree->useCache(
false);
221 $tree->saveSubTree(
$ref_id,
true);
240 $node_data = $saved_tree->getNodeData($ref_id);
241 $saved_tree->deleteTree($node_data);
249 foreach ($obs as $ob)
259 $this->assertEquals(
"tree1-tree2-tree3-tree4-tree5-tree6-tree7-", $value);
269 include_once
'./Services/Object/classes/class.ilObject.php';
276 $this->assertEquals($date, null);