10 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
11 ilUnitUtil::performInitialisation();
22 $obj2->setType(
"xxx");
24 $id2 = $obj2->getId();
26 if ($id2 == ($id + 1))
45 $this->assertEquals(
"create1-create2-create3-", $value);
54 $obj->setTitle(
"TestObject");
55 $obj->setDescription(
"TestDescription");
56 $obj->setImportId(
"imp_44");
58 $obj->createReference();
63 if ($obj->getType() ==
"")
67 if ($obj->getTitle() ==
"TestObject")
71 if ($obj->getDescription() ==
"TestDescription")
75 if ($obj->getImportId() ==
"imp_44")
79 if ($obj->getOwner() == $ilUser->getId())
85 if ($obj->getTitle() ==
"TestObject")
90 if ($obj->getCreateDate() == ($lu = $obj->getLastUpdateDate()))
94 $obj->setTitle(
"TestObject2");
99 if ($lu != ($lu2 = $obj->getLastUpdateDate()))
103 if ($obj->getTitle() ==
"TestObject2")
158 foreach ($obs as $ob)
160 if ($ob[
"obj_id"] == $ilUser->getId())
171 if ($d1 != $d2 && $d1 == $d3 && $d3 == null)
178 $this->assertEquals(
"sg1-sg2-sg3-sg4-sg5-sg6-sg7-up1-up2-".
179 "lu1-lu2-lu3-lu4-lu5-lu6-lu7-lu8-lu9-lu10-lu11-dd1-", $value);
187 $obj->setType(
"xxx");
188 $obj->setTitle(
"TestObject");
189 $obj->setDescription(
"TestDescription");
190 $obj->setImportId(
"imp_44");
192 $obj->createReference();
197 $obj->putInTree(ROOT_FOLDER_ID);
198 $obj->createRoleFolder();
199 $obj->setPermissions(ROOT_FOLDER_ID);
210 $tree->useCache(
false);
212 $tree->saveSubTree(
$ref_id,
true);
231 $node_data = $saved_tree->getNodeData($ref_id);
232 $saved_tree->deleteTree($node_data);
240 foreach ($obs as $ob)
250 $this->assertEquals(
"tree1-tree2-tree3-tree4-tree5-tree6-tree7-", $value);
259 include_once
'./Services/Object/classes/class.ilObject.php';
266 $this->assertEquals($date, null);