Unit tests.
More...
Unit tests.
- Author
- Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
\
Definition at line 29 of file assClozeTestGUITest.php.
◆ setUp()
assClozeTestGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 33 of file assClozeTestGUITest.php.
References addGlobal_uiFactory(), addGlobal_uiRenderer(), and setGlobalVariable().
39 $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
40 ->disableOriginalConstructor()
42 $ilCtrl_mock->method(
'saveParameter');
43 $ilCtrl_mock->method(
'saveParameterByClass');
46 $lng_mock = $this->getMockBuilder(ilLanguage::class)
47 ->disableOriginalConstructor()
48 ->onlyMethods([
'txt'])
50 $lng_mock->method(
'txt')->willReturn(
'Test');
54 $ilias_mock->account =
new stdClass();
55 $ilias_mock->account->id = 6;
56 $ilias_mock->account->fullname =
'Esther Tester';
setGlobalVariable(string $name, mixed $value)
◆ testInstantiateObjectShouldReturnInstance()
assClozeTestGUITest::testInstantiateObjectShouldReturnInstance |
( |
| ) |
|
enabled
Definition at line 63 of file assClozeTestGUITest.php.
References setGlobalVariable().
72 $this->getMockBuilder(Factory::class)
73 ->disableOriginalConstructor()
78 $this->getMockBuilder(Renderer::class)
79 ->disableOriginalConstructor()
84 $this->assertInstanceOf(assClozeTestGUI::class, $instance);
Cloze test question GUI representation.
setGlobalVariable(string $name, mixed $value)
◆ $backupGlobals
assClozeTestGUITest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: