ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilServicesBadgeSuite.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 
29 require_once 'libs/composer/vendor/autoload.php';
30 
35 {
36  public static function suite(): self
37  {
38  $suite = new self();
39 
40  $tests = [
41  BadgeManagementSessionRepositoryTest::class,
42  PresentationHeaderTest::class,
43  BadgeParentTest::class,
44  ModalTest::class,
45  SortingTest::class,
46  TileTest::class,
47  TileViewTest::class,
48  ];
49 
50  foreach ($tests as $test) {
51  $name = current(array_reverse(explode('\\', $test)));
52  require_once('./Services/Badge/test/' . $name . '.php');
53  $suite->addTestSuite($test);
54  }
55 
56  return $suite;
57  }
58 }