ILIAS
trunk Revision v11.0_alpha-1702-gfd3ecb7f852
◀ 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
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
SkillPersonalTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Skill\Personal
;
22
23
use
PHPUnit\Framework\TestCase
;
24
28
class
SkillPersonalTest
extends
TestCase
29
{
30
protected
SelectedUserSkill
$selected_skill
;
31
protected
AssignedMaterial
$material
;
32
33
protected
function
setUp
(): void
34
{
35
parent::setUp();
36
37
$this->selected_skill =
new
SelectedUserSkill
(
38
11,
39
"My selected skill"
40
);
41
$this->material =
new
AssignedMaterial
(
42
21,
43
22,
44
23,
45
24,
46
25,
47
26
48
);
49
}
50
51
public
function
testSelectedSkillProperties
(): void
52
{
53
$s =
$this->selected_skill
;
54
55
$this->assertEquals(
56
11,
57
$s->getSkillNodeId()
58
);
59
$this->assertEquals(
60
"My selected skill"
,
61
$s->getTitle()
62
);
63
}
64
65
public
function
testMaterialProperties
(): void
66
{
67
$m =
$this->material
;
68
69
$this->assertEquals(
70
21,
71
$m->getUserId()
72
);
73
$this->assertEquals(
74
22,
75
$m->getTopSkillId()
76
);
77
$this->assertEquals(
78
23,
79
$m->getSkillId()
80
);
81
$this->assertEquals(
82
24,
83
$m->getLevelId()
84
);
85
$this->assertEquals(
86
25,
87
$m->getWorkspaceId()
88
);
89
$this->assertEquals(
90
26,
91
$m->getTrefId()
92
);
93
}
94
}
ILIAS\Skill\Personal\SkillPersonalTest\$material
AssignedMaterial $material
Definition:
SkillPersonalTest.php:31
ILIAS\Skill\Personal\AssignedMaterial
Definition:
class.AssignedMaterial.php:26
ILIAS\Skill\Personal\SkillPersonalTest\testMaterialProperties
testMaterialProperties()
Definition:
SkillPersonalTest.php:65
ILIAS\Skill\Personal\SkillPersonalTest\setUp
setUp()
Definition:
SkillPersonalTest.php:33
ILIAS\Skill\Personal\SkillPersonalTest
Definition:
SkillPersonalTest.php:28
ILIAS\Skill\Personal\SkillPersonalTest\$selected_skill
SelectedUserSkill $selected_skill
Definition:
SkillPersonalTest.php:30
ILIAS\Skill\Personal\SelectedUserSkill
Definition:
class.SelectedUserSkill.php:26
ILIAS\Skill\Personal
Definition:
class.AssignedMaterial.php:21
ILIAS\Skill\Personal\SkillPersonalTest\testSelectedSkillProperties
testSelectedSkillProperties()
Definition:
SkillPersonalTest.php:51
TestCase
components
ILIAS
Skill
tests
Personal
SkillPersonalTest.php
Generated on Thu Apr 3 2025 23:03:41 for ILIAS by
1.8.13 (using
Doxyfile
)