ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestToplistGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  protected function setUp(): void
30  {
31  global $DIC;
32  parent::setUp();
33 
34  $this->addGlobal_ilCtrl();
35  $this->addGlobal_tpl();
36  $this->addGlobal_lng();
37  $this->addGlobal_ilUser();
38  $this->addGlobal_uiFactory();
39  $this->addGlobal_uiRenderer();
40 
41  $this->testObj = new ilTestToplistGUI(
42  $this->createMock(ilObjTest::class),
43  $this->createMock(ilTestTopList::class),
44  $DIC['ilCtrl'],
45  $DIC['tpl'],
46  $DIC['lng'],
47  $DIC['ilUser'],
48  $DIC['ui.factory'],
49  $DIC['ui.renderer']
50  );
51  }
52 
54  {
55  $this->assertInstanceOf(ilTestToplistGUI::class, $this->testObj);
56  }
57 }
global $DIC
Definition: feed.php:28
Class ilTestBaseClass.
Class ilTestToplistGUITest.