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 ilTestParticipantsTableGUITest
- Author
- Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de
Definition at line 25 of file ilTestParticipantsTableGUITest.php.
◆ setUp()
ilTestParticipantsTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file ilTestParticipantsTableGUITest.php.
References ilTestBaseTestCase\setGlobalVariable().
34 $lng_mock = $this->createMock(ilLanguage::class);
35 $ctrl_mock = $this->createMock(ilCtrl::class);
36 $ctrl_mock->expects($this->any())
37 ->method(
"getFormAction")
38 ->willReturnCallback(
function () {
39 return "testFormAction";
42 $renderer_mock = $this->createMock(\
ILIAS\
UI\Renderer::class);
43 $ui_factory_mock = $this->createMock(\
ILIAS\
UI\Factory::class);
50 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
51 $component_factory = $this->createMock(ilComponentFactory::class);
52 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
56 $this->parentObj_mock = $this->createMock(ilTestParticipantsGUI::class);
57 $objTest_mock = $this->createMock(ilObjTest::class);
60 ->expects($this->any())
61 ->method(
"getTestObj")
62 ->willReturn($objTest_mock);
64 $this->parentObj_mock->object = $objTest_mock;
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setGlobalVariable(string $name, $value)
◆ test_instantiateObject_shouldReturnInstance()
ilTestParticipantsTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testAnonymity()
ilTestParticipantsTableGUITest::testAnonymity |
( |
| ) |
|
◆ testManageInviteesCommandsEnabled()
ilTestParticipantsTableGUITest::testManageInviteesCommandsEnabled |
( |
| ) |
|
Definition at line 82 of file ilTestParticipantsTableGUITest.php.
84 $this->assertIsBool($this->tableGui->isManageInviteesCommandsEnabled());
85 $this->tableGui->setManageInviteesCommandsEnabled(
false);
86 $this->assertFalse($this->tableGui->isManageInviteesCommandsEnabled());
87 $this->tableGui->setManageInviteesCommandsEnabled(
true);
88 $this->assertTrue($this->tableGui->isManageInviteesCommandsEnabled());
◆ testManageResultsCommandsEnabled()
ilTestParticipantsTableGUITest::testManageResultsCommandsEnabled |
( |
| ) |
|
Definition at line 73 of file ilTestParticipantsTableGUITest.php.
75 $this->assertIsBool($this->tableGui->isManageResultsCommandsEnabled());
76 $this->tableGui->setManageResultsCommandsEnabled(
false);
77 $this->assertFalse($this->tableGui->isManageResultsCommandsEnabled());
78 $this->tableGui->setManageResultsCommandsEnabled(
true);
79 $this->assertTrue($this->tableGui->isManageResultsCommandsEnabled());
◆ testNumericOrdering()
ilTestParticipantsTableGUITest::testNumericOrdering |
( |
| ) |
|
Definition at line 112 of file ilTestParticipantsTableGUITest.php.
114 $this->assertTrue($this->tableGui->numericOrdering(
"access"));
115 $this->assertTrue($this->tableGui->numericOrdering(
"tries"));
116 $this->assertFalse($this->tableGui->numericOrdering(
"randomString"));
◆ testParticipantHasSolutionsFilterEnabled()
ilTestParticipantsTableGUITest::testParticipantHasSolutionsFilterEnabled |
( |
| ) |
|
Definition at line 103 of file ilTestParticipantsTableGUITest.php.
105 $this->assertIsBool($this->tableGui->isParticipantHasSolutionsFilterEnabled());
106 $this->tableGui->setParticipantHasSolutionsFilterEnabled(
false);
107 $this->assertFalse($this->tableGui->isParticipantHasSolutionsFilterEnabled());
108 $this->tableGui->setParticipantHasSolutionsFilterEnabled(
true);
109 $this->assertTrue($this->tableGui->isParticipantHasSolutionsFilterEnabled());
◆ testRowKeyDataField()
ilTestParticipantsTableGUITest::testRowKeyDataField |
( |
| ) |
|
Definition at line 91 of file ilTestParticipantsTableGUITest.php.
93 $this->tableGui->setRowKeyDataField(
"test");
94 $this->assertEquals(
"test", $this->tableGui->getRowKeyDataField());
◆ $parentObj_mock
◆ $tableGui
The documentation for this class was generated from the following file: