ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ 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->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:
NotificationFactoryTestTBD.php:27
StandardNotification
BaseNotificationSetUp
Class BaseNotificationSetUp.
Definition:
BaseNotificationSetUpTBD.php:42
NotificationFactoryTest\testCorrectReturn
testCorrectReturn()
Definition:
NotificationFactoryTestTBD.php:49
NotificationFactoryTest\testAvailableMethods
testAvailableMethods()
Definition:
NotificationFactoryTestTBD.php:29
ILIAS\UI\examples\Symbol\Glyph\Sort\sort
sort()
description: > Example for rendering a Sort Glyph.
Definition:
sort.php:25
ReflectionClass
$r
$r
Definition:
shib_logout.php:137
StandardNotificationGroup
components
ILIAS
GlobalScreen
tests
Notification
Factory
NotificationFactoryTestTBD.php
Generated on Wed Sep 10 2025 15:15:42 for ILIAS by
1.8.13 (using
Doxyfile
)