22 require_once(__DIR__ .
"/../../BaseNotificationSetUp.php");
32 protected function setUp(): void
35 if (!defined(
"ILIAS_HTTP_PATH")) {
36 define(
"ILIAS_HTTP_PATH",
"http://localhost");
43 $this->assertInstanceOf(StandardNotificationRenderer::class, $renderer);
50 $icon = $this->
getUIFactory()->symbol()->icon()->standard(
"mail",
"mail");
51 $item = $this->
getUIFactory()->item()->notification(
"hello", $icon);
53 $standard_notification = $this->factory->standard($this->
id)->withNotificationItem($item);
55 $this->assertEquals($item, $renderer->getNotificationComponentForItem($standard_notification));
62 $icon = $this->
getUIFactory()->symbol()->icon()->standard(
"mail",
"mail");
63 $item = $this->
getUIFactory()->item()->notification(
"hello", $icon);
65 $standard_notification = $this->factory->standard($this->
id)
66 ->withNotificationItem($item)
67 ->withClosedCallable(
function ():
void {
70 $item = $item->withCloseAction(
"src/GlobalScreen/Client/notify.php?mode=closed&item_id=" . $this->
hash($this->
id->serialize()));
71 $this->assertEquals($item, $renderer->getNotificationComponentForItem($standard_notification));
Class BaseNotificationSetUp.
Class StandardNotificationTest.
testGetNotificationComponentForItemWithCloseCallable()
Class StandardNotificationGroupRenderer.
testGetNotificationComponentForItem()