ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
ilStudyProgrammeProgressIdTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
require_once(__DIR__ .
"/../../../../../../vendor/composer/vendor/autoload.php"
);
22
23
use
ILIAS\StudyProgramme\Assignment\Node
;
24
25
class
ilStudyProgrammeProgressIdTest
extends
\PHPUnit\Framework\TestCase
26
{
27
protected
$backupGlobals
=
false
;
28
29
public
function
testPRGProgressId
(): 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
}
41
42
public
function
testPRGProgressIdFromString
(): void
43
{
44
$src =
'12_34_56'
;
45
$id
=
PRGProgressId::createFromString
($src);
46
$this->assertInstanceOf(PRGProgressId::class,
$id
);
47
$this->assertEquals((
string
)
$id
, $src);
48
}
49
}
$ass_id
int $ass_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:37
PRGProgressId
Definition:
PRGProgressId.php:21
ilStudyProgrammeProgressIdTest\testPRGProgressIdFromString
testPRGProgressIdFromString()
Definition:
ilStudyProgrammeProgressIdTest.php:42
ilStudyProgrammeProgressIdTest
Definition:
ilStudyProgrammeProgressIdTest.php:25
PRGProgressId\createFromString
static createFromString(string $id)
Definition:
PRGProgressId.php:36
ilStudyProgrammeProgressIdTest\$backupGlobals
$backupGlobals
Definition:
ilStudyProgrammeProgressIdTest.php:27
Node
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ilStudyProgrammeProgressIdTest\testPRGProgressId
testPRGProgressId()
Definition:
ilStudyProgrammeProgressIdTest.php:29
components
ILIAS
StudyProgramme
tests
model
Assignments
ilStudyProgrammeProgressIdTest.php
Generated on Wed Sep 3 2025 23:03:54 for ILIAS by
1.8.13 (using
Doxyfile
)