30 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
31 ilUnitUtil::performInitialisation();
40 include_once
'Services/Membership/classes/class.ilMemberAgreement.php';
47 $agree->setAccepted(
true);
52 $sta = $agree->isAccepted();
53 $this->assertEquals($sta,
true);
58 $sta = $agree->isAccepted();
59 $this->assertEquals($sta,
false);
62 $this->assertEquals($sta,
false);
66 $agree->setAccepted(
true);
70 $this->assertEquals($sta,
true);
73 $this->assertEquals($sta,
true);
testMemberAgreement()
Test member agreement IL_Init.
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.