ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
StandardNotificationGroupRendererTest.php
Go to the documentation of this file.
1<?php
3
4require_once(__DIR__ . "/../../BaseNotificationSetUp.php");
5
10{
11 public function testConstruct()
12 {
13 $renderer = new StandardNotificationGroupRenderer($this->getUIFactory());
14 $this->assertInstanceOf(StandardNotificationGroupRenderer::class, $renderer);
15 }
16
18 {
19 $renderer = new StandardNotificationGroupRenderer($this->getUIFactory());
20 $icon = $this->getUIFactory()->symbol()->icon()->standard("mail", "mail");
21 $item = $this->getUIFactory()->item()->notification("hello", $icon);
22
23 $slate = $this->getUIFactory()->mainControls()->slate()->notification("title", [$item]);
24
25 $group_notification = $this->factory->standardGroup($this->id)->withTitle("title")->addNotification(
26 $this->factory->standard($this->id)->withNotificationItem($item)
27 );
28
29 $this->assertEquals($slate, $renderer->getNotificationComponentForItem($group_notification));
30 }
31}
Class BaseNotificationSetUp.
An exception for terminatinating execution or to throw for unit testing.