ILIAS  release_8 Revision v8.19
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 28 of file StandardNotificationGroupRendererTest.php.

References BaseNotificationSetUp\getUIFactory().

28  : void
29  {
30  $renderer = new StandardNotificationGroupRenderer($this->getUIFactory());
31  $this->assertInstanceOf(StandardNotificationGroupRenderer::class, $renderer);
32  }
+ Here is the call graph for this function:

◆ testGetNotificationComponentForItem()

StandardNotificationGroupRendererTest::testGetNotificationComponentForItem ( )

Definition at line 34 of file StandardNotificationGroupRendererTest.php.

References BaseNotificationSetUp\getUIFactory().

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

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