ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NotificationFactoryTest Class Reference

Class NotificationFactoryTest. More...

+ Inheritance diagram for NotificationFactoryTest:
+ Collaboration diagram for NotificationFactoryTest:

Public Member Functions

 testAvailableMethods ()
 
 testCorrectReturn ()
 
- 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

Class NotificationFactoryTest.

Definition at line 27 of file NotificationFactoryTestTBD.php.

Member Function Documentation

◆ testAvailableMethods()

NotificationFactoryTest::testAvailableMethods ( )

Definition at line 29 of file NotificationFactoryTestTBD.php.

References $r, factory(), and ILIAS\UI\examples\Symbol\Glyph\Sort\sort().

29  : void
30  {
31  $r = new ReflectionClass($this->factory);
32 
33  $methods = [];
34  foreach ($r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
35  $methods[] = $method->getName();
36  }
37  sort($methods);
38  $this->assertEquals(
39  [
40  0 => 'administrative',
41  1 => 'standard',
42  2 => 'standardGroup',
43  ],
44  $methods
45  );
46  }
factory()
sort()
description: > Example for rendering a Sort Glyph.
Definition: sort.php:41
$r
+ Here is the call graph for this function:

◆ testCorrectReturn()

NotificationFactoryTest::testCorrectReturn ( )

Definition at line 49 of file NotificationFactoryTestTBD.php.

References factory().

49  : void
50  {
51  $this->assertInstanceOf(StandardNotification::class, $this->factory->standard($this->id));
52  $this->assertInstanceOf(StandardNotificationGroup::class, $this->factory->standardGroup($this->id));
53  }
factory()
+ Here is the call graph for this function:

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