ILIAS  release_8 Revision v8.24
ilStudyProgrammeAutoCategoryTest Class Reference
+ Inheritance diagram for ilStudyProgrammeAutoCategoryTest:
+ Collaboration diagram for ilStudyProgrammeAutoCategoryTest:

Public Member Functions

 testConstruction ()
 
 testGetPrgObjId (ilStudyProgrammeAutoCategory $ac)
 @depends testConstruction More...
 
 testGetCategoryRefId (ilStudyProgrammeAutoCategory $ac)
 @depends testConstruction More...
 
 testGetLastEditorId (ilStudyProgrammeAutoCategory $ac)
 @depends testConstruction More...
 
 testGetLastEdited (ilStudyProgrammeAutoCategory $ac)
 @depends 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)

@depends testConstruction

Definition at line 67 of file ilStudyProgrammeAutoCategoryTest.php.

67 : void
68 {
69 $this->assertEquals(
70 $this->cat_ref_id,
71 $ac->getCategoryRefId()
72 );
73 }

References ilStudyProgrammeAutoCategory\getCategoryRefId().

+ Here is the call graph for this function:

◆ testGetLastEdited()

ilStudyProgrammeAutoCategoryTest::testGetLastEdited ( ilStudyProgrammeAutoCategory  $ac)

@depends testConstruction

Definition at line 89 of file ilStudyProgrammeAutoCategoryTest.php.

89 : void
90 {
91 $this->assertEquals(
92 $this->dat,
93 $ac->getLastEdited()
94 );
95 }

References ilStudyProgrammeAutoCategory\getLastEdited().

+ Here is the call graph for this function:

◆ testGetLastEditorId()

ilStudyProgrammeAutoCategoryTest::testGetLastEditorId ( ilStudyProgrammeAutoCategory  $ac)

@depends testConstruction

Definition at line 78 of file ilStudyProgrammeAutoCategoryTest.php.

78 : void
79 {
80 $this->assertEquals(
81 $this->usr_id,
82 $ac->getLastEditorId()
83 );
84 }

References ilStudyProgrammeAutoCategory\getLastEditorId().

+ Here is the call graph for this function:

◆ testGetPrgObjId()

ilStudyProgrammeAutoCategoryTest::testGetPrgObjId ( ilStudyProgrammeAutoCategory  $ac)

@depends testConstruction

Definition at line 56 of file ilStudyProgrammeAutoCategoryTest.php.

56 : void
57 {
58 $this->assertEquals(
59 $this->prg_obj_id,
60 $ac->getPrgObjId()
61 );
62 }

References ilStudyProgrammeAutoCategory\getPrgObjId().

+ 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: