ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilStudyProgrammeProgressIdTest Class Reference
+ Inheritance diagram for ilStudyProgrammeProgressIdTest:
+ Collaboration diagram for ilStudyProgrammeProgressIdTest:

Public Member Functions

 testPRGProgressId ()
 
 testPRGProgressIdFromString ()
 

Protected Attributes

 $backupGlobals = false
 

Detailed Description

Definition at line 25 of file ilStudyProgrammeProgressIdTest.php.

Member Function Documentation

◆ testPRGProgressId()

ilStudyProgrammeProgressIdTest::testPRGProgressId ( )

Definition at line 29 of file ilStudyProgrammeProgressIdTest.php.

29 : void
30 {
31 $ass_id = 12;
32 $usr_id = 34;
33 $node_id = 56;
34 $id = new PRGProgressId($ass_id, $usr_id, $node_id);
35
36 $this->assertEquals($id->getAssignmentId(), $ass_id);
37 $this->assertEquals($id->getUsrId(), $usr_id);
38 $this->assertEquals($id->getNodeId(), $node_id);
39 $this->assertEquals((string) $id, '12_34_56');
40 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $ass_id, and $id.

◆ testPRGProgressIdFromString()

ilStudyProgrammeProgressIdTest::testPRGProgressIdFromString ( )

Definition at line 42 of file ilStudyProgrammeProgressIdTest.php.

42 : void
43 {
44 $src = '12_34_56';
46 $this->assertInstanceOf(PRGProgressId::class, $id);
47 $this->assertEquals((string) $id, $src);
48 }
static createFromString(string $id)

References $id, and PRGProgressId\createFromString().

+ Here is the call graph for this function:

Field Documentation

◆ $backupGlobals

ilStudyProgrammeProgressIdTest::$backupGlobals = false
protected

Definition at line 27 of file ilStudyProgrammeProgressIdTest.php.


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