ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables 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 10 of file NotificationFactoryTest.php.

Member Function Documentation

◆ testAvailableMethods()

NotificationFactoryTest::testAvailableMethods ( )

Definition at line 12 of file NotificationFactoryTest.php.

13  {
14  $r = new ReflectionClass($this->factory);
15 
16  $methods = [];
17  foreach ($r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
18  $methods[] = $method->getName();
19  }
20  sort($methods);
21  $this->assertEquals(
22  $methods,
23  [
24  0 => 'standard',
25  1 => 'standardGroup',
26  ]
27  );
28  }

◆ testCorrectReturn()

NotificationFactoryTest::testCorrectReturn ( )

Definition at line 31 of file NotificationFactoryTest.php.

32  {
33  $this->assertInstanceOf(StandardNotification::class, $this->factory->standard($this->id));
34  $this->assertInstanceOf(StandardNotificationGroup::class, $this->factory->standardGroup($this->id));
35  }

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