ILIAS  release_7 Revision v7.30-3-g800a261c036
ilStudyProgrammeAutoCategoryTest Class Reference
+ Inheritance diagram for ilStudyProgrammeAutoCategoryTest:
+ Collaboration diagram for ilStudyProgrammeAutoCategoryTest:

Public Member Functions

 setUp ()
 
 testConstruction ()
 
 testGetPrgObjId ($ac)
 @depends testConstruction More...
 
 testGetCategoryRefId ($ac)
 @depends testConstruction More...
 
 testGetLastEditorId ($ac)
 @depends testConstruction More...
 
 testGetLastEdited ($ac)
 @depends testConstruction More...
 

Protected Attributes

 $backupGlobals = false
 

Detailed Description

Definition at line 3 of file ilStudyProgrammeAutoCategoryTest.php.

Member Function Documentation

◆ setUp()

ilStudyProgrammeAutoCategoryTest::setUp ( )

Definition at line 7 of file ilStudyProgrammeAutoCategoryTest.php.

7 : void
8 {
9 PHPUnit_Framework_Error_Deprecated::$enabled = false;
10 $this->prg_obj_id = 123;
11 $this->cat_ref_id = 666;
12 $this->usr_id = 6;
13 $this->dat = new DateTimeImmutable('2019-06-05 15:25:12');
14 }

◆ testConstruction()

ilStudyProgrammeAutoCategoryTest::testConstruction ( )

Definition at line 16 of file ilStudyProgrammeAutoCategoryTest.php.

17 {
19 $this->prg_obj_id,
20 $this->cat_ref_id,
21 $this->usr_id,
22 $this->dat
23 );
24 $this->assertInstanceOf(
25 ilStudyProgrammeAutoCategory::class,
26 $ac
27 );
28 return $ac;
29 }
Class ilStudyProgrammeAutoCategory.

◆ testGetCategoryRefId()

ilStudyProgrammeAutoCategoryTest::testGetCategoryRefId (   $ac)

@depends testConstruction

Definition at line 45 of file ilStudyProgrammeAutoCategoryTest.php.

46 {
47 $this->assertEquals(
48 $this->cat_ref_id,
49 $ac->getCategoryRefId()
50 );
51 }

◆ testGetLastEdited()

ilStudyProgrammeAutoCategoryTest::testGetLastEdited (   $ac)

@depends testConstruction

Definition at line 67 of file ilStudyProgrammeAutoCategoryTest.php.

68 {
69 $this->assertEquals(
70 $this->dat,
71 $ac->getLastEdited()
72 );
73 }

◆ testGetLastEditorId()

ilStudyProgrammeAutoCategoryTest::testGetLastEditorId (   $ac)

@depends testConstruction

Definition at line 56 of file ilStudyProgrammeAutoCategoryTest.php.

57 {
58 $this->assertEquals(
59 $this->usr_id,
60 $ac->getLastEditorId()
61 );
62 }

◆ testGetPrgObjId()

ilStudyProgrammeAutoCategoryTest::testGetPrgObjId (   $ac)

@depends testConstruction

Definition at line 34 of file ilStudyProgrammeAutoCategoryTest.php.

35 {
36 $this->assertEquals(
37 $this->prg_obj_id,
38 $ac->getPrgObjId()
39 );
40 }

Field Documentation

◆ $backupGlobals

ilStudyProgrammeAutoCategoryTest::$backupGlobals = false
protected

Definition at line 5 of file ilStudyProgrammeAutoCategoryTest.php.


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