Class ilCourseTest needsInstalledILIAS.
More...
Class ilCourseTest needsInstalledILIAS.
Definition at line 28 of file ilCourseTest.php.
◆ setUp()
Definition at line 33 of file ilCourseTest.php.
35 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
36 ilUnitUtil::performInitialisation();
◆ testMemberAgreement()
ilCourseTest::testMemberAgreement |
( |
| ) |
|
Test member agreement IL_Init.
Definition at line 43 of file ilCourseTest.php.
References $DIC, $ilDB, ilMemberAgreement\_deleteByUser(), ilMemberAgreement\_hasAccepted(), ilMemberAgreement\_hasAgreements(), and ilMemberAgreement\_hasAgreementsByObjId().
45 include_once
'Services/Membership/classes/class.ilMemberAgreement.php';
54 $agree->setAccepted(
true);
59 $sta = $agree->isAccepted();
60 $this->assertEquals($sta,
true);
65 $sta = $agree->isAccepted();
66 $this->assertEquals($sta,
false);
69 $this->assertEquals($sta,
false);
73 $agree->setAccepted(
true);
77 $this->assertEquals($sta,
true);
80 $this->assertEquals($sta,
true);
static _hasAccepted($a_usr_id, $a_obj_id)
Check if user has accepted agreement.
static _deleteByUser($a_usr_id)
Delete all entries by user.
static _hasAgreements()
Check if there is any user agreement.
static _hasAgreementsByObjId($a_obj_id)
Check if there is any user agreement.
◆ $backupGlobals
ilCourseTest::$backupGlobals = false |
|
protected |
◆ $preserveGlobalState
ilCourseTest::$preserveGlobalState = false |
|
protected |
The documentation for this class was generated from the following file: