ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilStudyProgrammeAutoCategoryTest Class Reference
+ Inheritance diagram for ilStudyProgrammeAutoCategoryTest:
+ Collaboration diagram for ilStudyProgrammeAutoCategoryTest:

Public Member Functions

 testConstruction ()
 
 testGetPrgObjId (ilStudyProgrammeAutoCategory $ac)
 
 testGetCategoryRefId (ilStudyProgrammeAutoCategory $ac)
 
 testGetLastEditorId (ilStudyProgrammeAutoCategory $ac)
 
 testGetLastEdited (ilStudyProgrammeAutoCategory $ac)
 

Protected Member Functions

 setUp ()
 

Protected Attributes

int $prg_obj_id
 
int $cat_ref_id
 
int $usr_id
 
DateTimeImmutable $dat
 

Detailed Description

Definition at line 23 of file ilStudyProgrammeAutoCategoryTest.php.

Member Function Documentation

◆ setUp()

ilStudyProgrammeAutoCategoryTest::setUp ( )
protected

Definition at line 30 of file ilStudyProgrammeAutoCategoryTest.php.

30  : void
31  {
32  $this->prg_obj_id = 123;
33  $this->cat_ref_id = 666;
34  $this->usr_id = 6;
35  $this->dat = new DateTimeImmutable('2019-06-05 15:25:12');
36  }

◆ testConstruction()

ilStudyProgrammeAutoCategoryTest::testConstruction ( )

Definition at line 38 of file ilStudyProgrammeAutoCategoryTest.php.

39  {
41  $this->prg_obj_id,
42  $this->cat_ref_id,
43  $this->usr_id,
44  $this->dat
45  );
46  $this->assertInstanceOf(
47  ilStudyProgrammeAutoCategory::class,
48  $ac
49  );
50  return $ac;
51  }
Class ilStudyProgrammeAutoCategory.

◆ testGetCategoryRefId()

ilStudyProgrammeAutoCategoryTest::testGetCategoryRefId ( ilStudyProgrammeAutoCategory  $ac)

Definition at line 63 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getCategoryRefId().

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

◆ testGetLastEdited()

ilStudyProgrammeAutoCategoryTest::testGetLastEdited ( ilStudyProgrammeAutoCategory  $ac)

Definition at line 81 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getLastEdited().

81  : void
82  {
83  $this->assertEquals(
84  $this->dat,
85  $ac->getLastEdited()
86  );
87  }
+ Here is the call graph for this function:

◆ testGetLastEditorId()

ilStudyProgrammeAutoCategoryTest::testGetLastEditorId ( ilStudyProgrammeAutoCategory  $ac)

Definition at line 72 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getLastEditorId().

72  : void
73  {
74  $this->assertEquals(
75  $this->usr_id,
76  $ac->getLastEditorId()
77  );
78  }
+ Here is the call graph for this function:

◆ testGetPrgObjId()

ilStudyProgrammeAutoCategoryTest::testGetPrgObjId ( ilStudyProgrammeAutoCategory  $ac)

Definition at line 54 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getPrgObjId().

54  : void
55  {
56  $this->assertEquals(
57  $this->prg_obj_id,
58  $ac->getPrgObjId()
59  );
60  }
+ Here is the call graph for this function:

Field Documentation

◆ $cat_ref_id

int ilStudyProgrammeAutoCategoryTest::$cat_ref_id
protected

Definition at line 26 of file ilStudyProgrammeAutoCategoryTest.php.

◆ $dat

DateTimeImmutable ilStudyProgrammeAutoCategoryTest::$dat
protected

Definition at line 28 of file ilStudyProgrammeAutoCategoryTest.php.

◆ $prg_obj_id

int ilStudyProgrammeAutoCategoryTest::$prg_obj_id
protected

Definition at line 25 of file ilStudyProgrammeAutoCategoryTest.php.

◆ $usr_id

int ilStudyProgrammeAutoCategoryTest::$usr_id
protected

Definition at line 27 of file ilStudyProgrammeAutoCategoryTest.php.


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