ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ 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
CharacteristicValueTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
require_once(
'components/ILIAS/UI/tests/Base.php'
);
22
23
use
ILIAS\UI\Implementation\Component\Listing\CharacteristicValue\Factory
as CharacteristicValueFactory;
24
25
class
CharacteristicValueTest
extends
ILIAS_UI_TestBase
26
{
27
public
function
testInterfaces
(): void
28
{
29
$f
= $this->
getCharacteristicValueFactory
();
30
31
$this->assertInstanceOf(
32
'ILIAS\\UI\\Component\\Listing\\CharacteristicValue\\Factory'
,
33
$f
34
);
35
36
$this->assertInstanceOf(
37
'ILIAS\\UI\\Component\\Listing\\CharacteristicValue\\Text'
,
38
$f
->text($this->getTextItemsMock())
39
);
40
}
41
42
protected
function
getCharacteristicValueFactory
(): CharacteristicValueFactory
43
{
44
return
new
CharacteristicValueFactory();
45
}
46
47
protected
function
getTextItemsMock
(): array
48
{
49
return
[
50
'label1'
=>
'item1'
,
51
'label2'
=>
'item2'
,
52
'label3'
=>
'item3'
53
];
54
}
55
56
protected
function
getInvalidTextItemsMocks
(): array
57
{
58
return
[
59
[
''
=>
'item'
],
60
[
'label'
=>
''
],
61
[]
62
];
63
}
64
}
CharacteristicValueTest\getCharacteristicValueFactory
getCharacteristicValueFactory()
Definition:
CharacteristicValueTest.php:42
CharacteristicValueTest\testInterfaces
testInterfaces()
Definition:
CharacteristicValueTest.php:27
CharacteristicValueTest\getInvalidTextItemsMocks
getInvalidTextItemsMocks()
Definition:
CharacteristicValueTest.php:56
CharacteristicValueTest
Definition:
CharacteristicValueTest.php:25
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
ILIAS\UI\Implementation\Component\Listing\CharacteristicValue\Factory
Definition:
Factory.php:25
ILIAS_UI_TestBase
CharacteristicValueTest\getTextItemsMock
getTextItemsMock()
Definition:
CharacteristicValueTest.php:47
components
ILIAS
UI
tests
Component
Listing
CharacteristicValue
CharacteristicValueTest.php
Generated on Sun Apr 13 2025 23:04:18 for ILIAS by
1.8.13 (using
Doxyfile
)