ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
NotificationFactoryTest.php
Go to the documentation of this file.
1
<?php
2
19
use
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotification
;
20
use
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
;
21
22
require_once(__DIR__ .
"/../BaseNotificationSetUp.php"
);
23
27
class
NotificationFactoryTest
extends
BaseNotificationSetUp
28
{
29
public
function
testAvailableMethods
(): void
30
{
31
$r =
new
ReflectionClass
($this->factory);
32
33
$methods = [];
34
foreach
($r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
35
$methods[] = $method->getName();
36
}
37
sort($methods);
38
$this->assertEquals(
39
[
40
0 =>
'administrative'
,
41
1 =>
'standard'
,
42
2 =>
'standardGroup'
,
43
],
44
$methods
45
);
46
}
47
48
49
public
function
testCorrectReturn
(): void
50
{
51
$this->assertInstanceOf(StandardNotification::class, $this->factory->standard($this->id));
52
$this->assertInstanceOf(StandardNotificationGroup::class, $this->factory->standardGroup($this->id));
53
}
54
}
NotificationFactoryTest
Class NotificationFactoryTest.
Definition:
NotificationFactoryTest.php:27
StandardNotification
BaseNotificationSetUp
Class BaseNotificationSetUp.
Definition:
BaseNotificationSetUp.php:42
NotificationFactoryTest\testCorrectReturn
testCorrectReturn()
Definition:
NotificationFactoryTest.php:49
NotificationFactoryTest\testAvailableMethods
testAvailableMethods()
Definition:
NotificationFactoryTest.php:29
ReflectionClass
StandardNotificationGroup
tests
GlobalScreen
Notification
Factory
NotificationFactoryTest.php
Generated on Wed Sep 3 2025 22:03:00 for ILIAS by
1.8.13 (using
Doxyfile
)