39 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
40 ilUnitUtil::performInitialisation();
50 include_once
'./Services/Membership/classes/class.ilWaitingList.php';
51 include_once
'./Modules/Course/classes/class.ilCourseWaitingList.php';
54 $ret = $wait->addToList(111111);
55 $this->assertEquals(
$ret,
true);
57 $wait->updateSubscriptionTime(111111,time());
58 $wait->removeFromList(111111);
60 $wait->addToList(111111);
61 $ret = $wait->isOnList(111111);
62 $this->assertEquals(
$ret,
true);
64 $wait->addToList(111111);
67 $wait->addToList(111111);
78 include_once
'./Services/Membership/classes/class.ilParticipants.php';
79 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
82 $part->addSubscriber(111111);
83 $part->updateSubscriptionTime(111111,time());
84 $part->updateSubject(111111,
'hallo');
86 $is = $part->isSubscriber(111111);
87 $this->assertEquals($is,
true);
90 $this->assertEquals($is,
true);
92 $part->deleteSubscriber(111111);
93 $is = $part->isSubscriber(111111);
94 $this->assertEquals($is,
false);