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
InterestedUserFieldChangeListenerTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\User\Tests
;
22
23
use
ILIAS\User\Profile\ChangeListeners\InterestedUserFieldChangeListener
;
24
29
class
InterestedUserFieldChangeListenerTest
extends
BaseTestCase
30
{
31
private
InterestedUserFieldChangeListener
$interestedUserFieldChangeListener
;
32
33
protected
function
setUp
(): void
34
{
35
$this->interestedUserFieldChangeListener =
new
InterestedUserFieldChangeListener
(
36
$this->createMock(\
ILIAS
\
Language
\Language::class),
37
'Test name'
,
38
'Test fieldName'
39
);
40
}
41
42
public
function
testGetName
(): void
43
{
44
$this->assertEquals(
45
'Test name'
,
46
$this->interestedUserFieldChangeListener->getName()
47
);
48
}
49
50
public
function
testGetFieldName
(): void
51
{
52
$this->assertEquals(
53
'Test fieldName'
,
54
$this->interestedUserFieldChangeListener->getFieldName()
55
);
56
}
57
58
public
function
testAddGetAttribute
(): void
59
{
60
$interestedUserFieldAttribute = $this->interestedUserFieldChangeListener->addAttribute(
'ABCD'
);
61
62
$this->assertEquals([
'ABCD'
=> $interestedUserFieldAttribute], $this->interestedUserFieldChangeListener->getAttributes());
63
}
64
}
ILIAS\User\Tests\InterestedUserFieldChangeListenerTest\testGetFieldName
testGetFieldName()
Definition:
InterestedUserFieldChangeListenerTest.php:50
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
ILIAS\User\Tests\InterestedUserFieldChangeListenerTest
Class InterestedUserFieldChangeListenerTest.
Definition:
InterestedUserFieldChangeListenerTest.php:29
ILIAS\User\Tests\InterestedUserFieldChangeListenerTest\testGetName
testGetName()
Definition:
InterestedUserFieldChangeListenerTest.php:42
ILIAS\User\Tests\BaseTestCase
Definition:
BaseTestCase.php:28
ILIAS\User\Profile\ChangeListeners\InterestedUserFieldChangeListener
Class InterestedUserFieldChangeListener.
Definition:
InterestedUserFieldChangeListener.php:29
ILIAS\User\Tests\InterestedUserFieldChangeListenerTest\setUp
setUp()
Definition:
InterestedUserFieldChangeListenerTest.php:33
ILIAS\Language
Definition:
Language.php:23
InterestedUserFieldChangeListener
ILIAS\User\Tests\InterestedUserFieldChangeListenerTest\$interestedUserFieldChangeListener
InterestedUserFieldChangeListener $interestedUserFieldChangeListener
Definition:
InterestedUserFieldChangeListenerTest.php:31
ILIAS\User\Tests\InterestedUserFieldChangeListenerTest\testAddGetAttribute
testAddGetAttribute()
Definition:
InterestedUserFieldChangeListenerTest.php:58
ILIAS\User\Tests
Definition:
BaseTestCase.php:20
components
ILIAS
User
tests
Profile
ChangeListeners
InterestedUserFieldChangeListenerTest.php
Generated on Thu Apr 3 2025 23:04:13 for ILIAS by
1.8.13 (using
Doxyfile
)