ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NotificationFactoryTestTBD.php
Go to the documentation of this file.
1 <?php
2 
21 
22 require_once(__DIR__ . "/../BaseNotificationSetUp.php");
23 
28 {
29  public function testAvailableMethods(): 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  }
47 
48 
49  public function testCorrectReturn(): void
50  {
51  $this->assertInstanceOf(StandardNotification::class, $this->factory->standard($this->id));
52  $this->assertInstanceOf(StandardNotificationGroup::class, $this->factory->standardGroup($this->id));
53  }
54 }
Class NotificationFactoryTest.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class BaseNotificationSetUp.
factory()
sort()
description: > Example for rendering a Sort Glyph.
Definition: sort.php:41
$r