39 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
40 ilUnitUtil::performInitialisation();
51 include_once
'./Services/Membership/classes/class.ilWaitingList.php';
52 include_once
'./Modules/Course/classes/class.ilCourseWaitingList.php';
55 $ret = $wait->addToList(111111);
56 $this->assertEquals(
$ret,
true);
58 $wait->updateSubscriptionTime(111111,time());
59 $wait->removeFromList(111111);
61 $wait->addToList(111111);
62 $ret = $wait->isOnList(111111);
63 $this->assertEquals(
$ret,
true);
65 $wait->addToList(111111);
68 $wait->addToList(111111);
79 include_once
'./Services/Membership/classes/class.ilParticipants.php';
80 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
83 $part->addSubscriber(111111);
84 $part->updateSubscriptionTime(111111,time());
85 $part->updateSubject(111111,
'hallo');
87 $is = $part->isSubscriber(111111);
88 $this->assertEquals($is,
true);
91 $this->assertEquals($is,
true);
93 $part->deleteSubscriber(111111);
94 $is = $part->isSubscriber(111111);
95 $this->assertEquals($is,
false);