ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StandardNotificationGroupRendererTestTBD.php
Go to the documentation of this file.
1<?php
2
20
21require_once(__DIR__ . "/../../BaseNotificationSetUp.php");
22
27{
28 public function testConstruct(): void
29 {
31 $this->assertInstanceOf(StandardNotificationGroupRenderer::class, $renderer);
32 }
33
35 {
37 $icon = $this->getUIFactory()->symbol()->icon()->standard("mail", "mail");
38 $item = $this->getUIFactory()->item()->notification("hello", $icon);
39
40 $slate = $this->getUIFactory()->mainControls()->slate()->notification("title", [$item]);
41
42 $group_notification = $this->factory->standardGroup($this->id)->withTitle("title")->addNotification(
43 $this->factory->standard($this->id)->withNotificationItem($item)
44 );
45
46 $this->assertEquals($slate, $renderer->getNotificationComponentForItem($group_notification));
47 }
48}
factory()
$renderer
Class BaseNotificationSetUp.