ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestResultsToolbarGUITest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $ctrl_mock = $this->createMock(ilCtrl::class);
34  $lng_mock = $this->createMock(ilLanguage::class);
35  $mainTpl_mock = $this->createMock(ilGlobalPageTemplate::class);
36 
37  $this->setGlobalVariable("lng", $lng_mock);
38 
39  $this->toolbarGUI = new ilTestResultsToolbarGUI(
40  $ctrl_mock,
41  $mainTpl_mock,
42  $lng_mock,
43  );
44  }
45 
47  {
48  $this->assertInstanceOf(ilTestResultsToolbarGUI::class, $this->toolbarGUI);
49  }
50 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setGlobalVariable(string $name, $value)
Class ilTestBaseClass.