ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilStudyProgrammeAutoMembershipsSourceTest Class Reference
+ Inheritance diagram for ilStudyProgrammeAutoMembershipsSourceTest:
+ Collaboration diagram for ilStudyProgrammeAutoMembershipsSourceTest:

Public Member Functions

 testConstruction ()
 
 testGetPrgObjId (ilStudyProgrammeAutoMembershipSource $ams)
 testConstruction More...
 
 testGetSourceType (ilStudyProgrammeAutoMembershipSource $ams)
 testConstruction More...
 
 testGetSourceId (ilStudyProgrammeAutoMembershipSource $ams)
 testConstruction More...
 
 testGetLastEditorId (ilStudyProgrammeAutoMembershipSource $ams)
 testConstruction More...
 
 testGetLastEdited (ilStudyProgrammeAutoMembershipSource $ams)
 testConstruction More...
 

Protected Member Functions

 setUp ()
 

Protected Attributes

int $prg_obj_id
 
string $source_type
 
int $source_id
 
bool $enbl
 
int $usr_id
 
DateTimeImmutable $dat
 

Detailed Description

Member Function Documentation

◆ setUp()

ilStudyProgrammeAutoMembershipsSourceTest::setUp ( )
protected

Definition at line 32 of file ilStudyProgrammeAutoMembershipsSourceTest.php.

References ilStudyProgrammeAutoMembershipSource\TYPE_ROLE.

32  : void
33  {
34  $this->prg_obj_id = 123;
36  $this->source_id = 666;
37  $this->enbl = true;
38  $this->usr_id = 6;
39  $this->dat = new DateTimeImmutable('2019-06-05 15:25:12');
40  }

◆ testConstruction()

ilStudyProgrammeAutoMembershipsSourceTest::testConstruction ( )

Definition at line 42 of file ilStudyProgrammeAutoMembershipsSourceTest.php.

43  {
45  $this->prg_obj_id,
46  $this->source_type,
47  $this->source_id,
48  $this->enbl,
49  $this->usr_id,
50  $this->dat,
51  false
52  );
53  $this->assertInstanceOf(
54  ilStudyProgrammeAutoMembershipSource::class,
55  $ams
56  );
57  return $ams;
58  }

◆ testGetLastEdited()

ilStudyProgrammeAutoMembershipsSourceTest::testGetLastEdited ( ilStudyProgrammeAutoMembershipSource  $ams)

testConstruction

Definition at line 106 of file ilStudyProgrammeAutoMembershipsSourceTest.php.

References ilStudyProgrammeAutoMembershipSource\getLastEdited().

106  : void
107  {
108  $this->assertEquals(
109  $this->dat,
110  $ams->getLastEdited()
111  );
112  }
+ Here is the call graph for this function:

◆ testGetLastEditorId()

ilStudyProgrammeAutoMembershipsSourceTest::testGetLastEditorId ( ilStudyProgrammeAutoMembershipSource  $ams)

testConstruction

Definition at line 95 of file ilStudyProgrammeAutoMembershipsSourceTest.php.

References ilStudyProgrammeAutoMembershipSource\getLastEditorId().

95  : void
96  {
97  $this->assertEquals(
98  $this->usr_id,
99  $ams->getLastEditorId()
100  );
101  }
+ Here is the call graph for this function:

◆ testGetPrgObjId()

ilStudyProgrammeAutoMembershipsSourceTest::testGetPrgObjId ( ilStudyProgrammeAutoMembershipSource  $ams)

testConstruction

Definition at line 63 of file ilStudyProgrammeAutoMembershipsSourceTest.php.

References ilStudyProgrammeAutoMembershipSource\getPrgObjId().

63  : void
64  {
65  $this->assertEquals(
66  $this->prg_obj_id,
67  $ams->getPrgObjId()
68  );
69  }
+ Here is the call graph for this function:

◆ testGetSourceId()

ilStudyProgrammeAutoMembershipsSourceTest::testGetSourceId ( ilStudyProgrammeAutoMembershipSource  $ams)

testConstruction

Definition at line 84 of file ilStudyProgrammeAutoMembershipsSourceTest.php.

References ilStudyProgrammeAutoMembershipSource\getSourceId().

84  : void
85  {
86  $this->assertEquals(
87  $this->source_id,
88  $ams->getSourceId()
89  );
90  }
+ Here is the call graph for this function:

◆ testGetSourceType()

ilStudyProgrammeAutoMembershipsSourceTest::testGetSourceType ( ilStudyProgrammeAutoMembershipSource  $ams)

testConstruction

Definition at line 74 of file ilStudyProgrammeAutoMembershipsSourceTest.php.

References ilStudyProgrammeAutoMembershipSource\getSourceType().

74  : void
75  {
76  $this->assertEquals(
77  $this->source_type,
78  $ams->getSourceType()
79  );
80  }
+ Here is the call graph for this function:

Field Documentation

◆ $dat

DateTimeImmutable ilStudyProgrammeAutoMembershipsSourceTest::$dat
protected

◆ $enbl

bool ilStudyProgrammeAutoMembershipsSourceTest::$enbl
protected

◆ $prg_obj_id

int ilStudyProgrammeAutoMembershipsSourceTest::$prg_obj_id
protected

◆ $source_id

int ilStudyProgrammeAutoMembershipsSourceTest::$source_id
protected

◆ $source_type

string ilStudyProgrammeAutoMembershipsSourceTest::$source_type
protected

◆ $usr_id

int ilStudyProgrammeAutoMembershipsSourceTest::$usr_id
protected

The documentation for this class was generated from the following file: