ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
NotificationFactoryTest.php
Go to the documentation of this file.
1
<?php
2
use
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotification
;
3
use
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
;
4
5
require_once(__DIR__ .
"/../BaseNotificationSetUp.php"
);
6
10
class
NotificationFactoryTest
extends
BaseNotificationSetUp
11
{
12
public
function
testAvailableMethods
()
13
{
14
$r =
new
ReflectionClass
($this->factory);
15
16
$methods = [];
17
foreach
($r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
18
$methods[] = $method->getName();
19
}
20
sort($methods);
21
$this->assertEquals(
22
$methods,
23
[
24
0 =>
'standard'
,
25
1 =>
'standardGroup'
,
26
]
27
);
28
}
29
30
31
public
function
testCorrectReturn
()
32
{
33
$this->assertInstanceOf(StandardNotification::class, $this->factory->standard($this->id));
34
$this->assertInstanceOf(StandardNotificationGroup::class, $this->factory->standardGroup($this->id));
35
}
36
}
NotificationFactoryTest
Class NotificationFactoryTest.
Definition:
NotificationFactoryTest.php:10
StandardNotification
BaseNotificationSetUp
Class BaseNotificationSetUp.
Definition:
BaseNotificationSetUp.php:24
NotificationFactoryTest\testCorrectReturn
testCorrectReturn()
Definition:
NotificationFactoryTest.php:31
NotificationFactoryTest\testAvailableMethods
testAvailableMethods()
Definition:
NotificationFactoryTest.php:12
ReflectionClass
StandardNotificationGroup
tests
GlobalScreen
Notification
Factory
NotificationFactoryTest.php
Generated on Fri Apr 18 2025 20:01:41 for ILIAS by
1.8.13 (using
Doxyfile
)