ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ()
 @inheritDoc More...
 
- Protected Attributes inherited from BaseNotificationSetUp
 $id
 
 $provider
 
 $identification
 
 $factory
 

Detailed Description

Member Function Documentation

◆ testConstruct()

StandardNotificationGroupRendererTest::testConstruct ( )

Definition at line 28 of file StandardNotificationGroupRendererTest.php.

28 : void
29 {
30 $renderer = new StandardNotificationGroupRenderer($this->getUIFactory());
31 $this->assertInstanceOf(StandardNotificationGroupRenderer::class, $renderer);
32 }

References BaseNotificationSetUp\getUIFactory().

+ Here is the call graph for this function:

◆ testGetNotificationComponentForItem()

StandardNotificationGroupRendererTest::testGetNotificationComponentForItem ( )

Definition at line 34 of file StandardNotificationGroupRendererTest.php.

34 : void
35 {
36 $renderer = new StandardNotificationGroupRenderer($this->getUIFactory());
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 }

References BaseNotificationSetUp\getUIFactory().

+ Here is the call graph for this function:

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