ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
NotificationFactoryTestTBD.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->assertSame(
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
}
factory
factory()
Definition:
UITestHelper.php:61
BaseNotificationSetUp
Class BaseNotificationSetUp.
Definition:
BaseNotificationSetUpTBD.php:43
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotificationGroup
Class StandardNotificationGroup Groups a set of Notification.
Definition:
StandardNotificationGroup.php:33
ILIAS\GlobalScreen\Scope\Notification\Factory\StandardNotification
Class Notification The default Notification mapping currently to one UI Notification Item component.
Definition:
StandardNotification.php:31
NotificationFactoryTest
Class NotificationFactoryTest.
Definition:
NotificationFactoryTestTBD.php:28
NotificationFactoryTest\testAvailableMethods
testAvailableMethods()
Definition:
NotificationFactoryTestTBD.php:29
NotificationFactoryTest\testCorrectReturn
testCorrectReturn()
Definition:
NotificationFactoryTestTBD.php:49
ILIAS\UI\examples\Symbol\Glyph\Sort\sort
sort()
Definition:
sort.php:41
components
ILIAS
GlobalScreen
tests
Notification
Factory
NotificationFactoryTestTBD.php
Generated on Sat Oct 18 2025 23:03:08 for ILIAS by
1.9.4 (using
Doxyfile
)