ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
StandardNotificationGroupRendererTest Class Reference

Class StandardNotificationTest. More...

+ Inheritance diagram for StandardNotificationGroupRendererTest:
+ Collaboration diagram for StandardNotificationGroupRendererTest:

Public Member Functions

 testConstruct ()
 
 testGetNotificationComponentForItem ()
 
- Public Member Functions inherited from BaseNotificationSetUp
 getUIFactory ()
 
 getDIC ()
 
 getDummyNotificationsProviderWithNotifications ($notifications)
 

Additional Inherited Members

- Protected Member Functions inherited from BaseNotificationSetUp
 setUp ()
 
- Protected Attributes inherited from BaseNotificationSetUp
 $id
 
 $provider
 
 $identification
 
 $factory
 

Detailed Description

Member Function Documentation

◆ testConstruct()

StandardNotificationGroupRendererTest::testConstruct ( )

Definition at line 11 of file StandardNotificationGroupRendererTest.php.

References BaseNotificationSetUp\getUIFactory().

12  {
13  $renderer = new StandardNotificationGroupRenderer($this->getUIFactory());
14  $this->assertInstanceOf(StandardNotificationGroupRenderer::class, $renderer);
15  }
+ Here is the call graph for this function:

◆ testGetNotificationComponentForItem()

StandardNotificationGroupRendererTest::testGetNotificationComponentForItem ( )

Definition at line 17 of file StandardNotificationGroupRendererTest.php.

References BaseNotificationSetUp\getUIFactory().

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  }
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: