This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestQuestionBrowserTableGUITest
- Author
- Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de
Definition at line 25 of file ilTestQuestionBrowserTableGUITest.php.
◆ setUp()
ilTestQuestionBrowserTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file ilTestQuestionBrowserTableGUITest.php.
References ilTestBaseTestCase\setGlobalVariable().
34 $lng_mock = $this->createMock(ilLanguage::class);
37 ->willReturnCallback(
function () {
38 return "testTranslation";
41 $ctrl_mock = $this->createMock(ilCtrl::class);
43 ->method(
"getFormAction")
44 ->willReturnCallback(
function () {
45 return "testFormAction";
48 $mainTpl_mock = $this->createMock(ilGlobalPageTemplate::class);
49 $db_mock = $this->createMock(ilDBInterface::class);
50 $tree_mock = $this->createMock(ilTree::class);
57 $this->
setGlobalVariable(
"ilObjDataCache", $this->createMock(ilObjectDataCache::class));
58 $component_factory = $this->createMock(ilComponentFactory::class);
59 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
62 $component_repository = $this->createMock(ilComponentRepository::class);
65 $this->parentObj_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods(array(
'getObject'))->getMock();
66 $this->parentObj_mock->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
70 $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->getMock(),
74 $component_repository,
75 $this->getMockBuilder(ilObjTest::class)->disableOriginalConstructor()->getMock(),
76 $this->createMock(ilAccessHandler::class),
77 $this->createMock(\
ILIAS\
HTTP\GlobalHttpState::class),
80 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock()
82 $this->createMock(
ILIAS\
UI\Factory::class),
83 $this->createMock(
ILIAS\
UI\Renderer::class),
Class ChatMainBarProvider .
setGlobalVariable(string $name, $value)
◆ test_instantiateObject_shouldReturnInstance()
ilTestQuestionBrowserTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testWriteAccess()
ilTestQuestionBrowserTableGUITest::testWriteAccess |
( |
| ) |
|
Definition at line 92 of file ilTestQuestionBrowserTableGUITest.php.
94 $this->tableGui->setWriteAccess(
false);
95 $this->assertFalse($this->tableGui->hasWriteAccess());
96 $this->tableGui->setWriteAccess(
true);
97 $this->assertTrue($this->tableGui->hasWriteAccess());
◆ $parentObj_mock
ilObjTestGUI ilTestQuestionBrowserTableGUITest::$parentObj_mock |
|
private |
◆ $tableGui
The documentation for this class was generated from the following file: