ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilStudyProgrammeAutoCategoryTest Class Reference
+ Inheritance diagram for ilStudyProgrammeAutoCategoryTest:
+ Collaboration diagram for ilStudyProgrammeAutoCategoryTest:

Public Member Functions

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

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  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testGetCategoryRefId()

ilStudyProgrammeAutoCategoryTest::testGetCategoryRefId ( ilStudyProgrammeAutoCategory  $ac)

testConstruction

Definition at line 67 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getCategoryRefId().

67  : void
68  {
69  $this->assertEquals(
70  $this->cat_ref_id,
71  $ac->getCategoryRefId()
72  );
73  }
+ Here is the call graph for this function:

◆ testGetLastEdited()

ilStudyProgrammeAutoCategoryTest::testGetLastEdited ( ilStudyProgrammeAutoCategory  $ac)

testConstruction

Definition at line 89 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getLastEdited().

89  : void
90  {
91  $this->assertEquals(
92  $this->dat,
93  $ac->getLastEdited()
94  );
95  }
+ Here is the call graph for this function:

◆ testGetLastEditorId()

ilStudyProgrammeAutoCategoryTest::testGetLastEditorId ( ilStudyProgrammeAutoCategory  $ac)

testConstruction

Definition at line 78 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getLastEditorId().

78  : void
79  {
80  $this->assertEquals(
81  $this->usr_id,
82  $ac->getLastEditorId()
83  );
84  }
+ Here is the call graph for this function:

◆ testGetPrgObjId()

ilStudyProgrammeAutoCategoryTest::testGetPrgObjId ( ilStudyProgrammeAutoCategory  $ac)

testConstruction

Definition at line 56 of file ilStudyProgrammeAutoCategoryTest.php.

References ilStudyProgrammeAutoCategory\getPrgObjId().

56  : void
57  {
58  $this->assertEquals(
59  $this->prg_obj_id,
60  $ac->getPrgObjId()
61  );
62  }
+ 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: