ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 StandardNotificationGroupRendererTestTBD.php.

References $renderer, and BaseNotificationSetUp\getUIFactory().

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

◆ testGetNotificationComponentForItem()

StandardNotificationGroupRendererTest::testGetNotificationComponentForItem ( )

Definition at line 34 of file StandardNotificationGroupRendererTestTBD.php.

References $renderer, factory(), and BaseNotificationSetUp\getUIFactory().

34  : void
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  }
$renderer
factory()
+ Here is the call graph for this function:

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