ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
▼
ILIAS
Test List
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Data Structures
▼
Files
►
File List
►
Globals
►
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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 Sun Apr 6 2025 23:04:09 for ILIAS by
1.8.13 (using
Doxyfile
)