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 ilParticipantsTestResultsTableGUITest
- Author
- Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de
Definition at line 25 of file ilParticipantsTestResultsTableGUITest.php.
◆ setUp()
ilParticipantsTestResultsTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file ilParticipantsTestResultsTableGUITest.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";
45 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
46 $component_factory = $this->createMock(ilComponentFactory::class);
47 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
51 $this->parentObj_mock = $this->createMock(ilParticipantsTestResultsGUI::class);
52 $objTest_mock = $this->createMock(ilObjTest::class);
55 ->expects($this->any())
56 ->method(
"getTestObj")
57 ->willReturn($objTest_mock);
59 $this->parentObj_mock->object = $objTest_mock;
setGlobalVariable(string $name, $value)
◆ test_instantiateObject_shouldReturnInstance()
ilParticipantsTestResultsTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testAccessResultsCommandsEnabled()
ilParticipantsTestResultsTableGUITest::testAccessResultsCommandsEnabled |
( |
| ) |
|
Definition at line 68 of file ilParticipantsTestResultsTableGUITest.php.
70 $this->assertIsBool($this->tableGui->isAccessResultsCommandsEnabled());
71 $this->tableGui->setAccessResultsCommandsEnabled(
true);
72 $this->assertTrue($this->tableGui->isAccessResultsCommandsEnabled());
74 $this->tableGui->setAccessResultsCommandsEnabled(
false);
75 $this->assertFalse($this->tableGui->isAccessResultsCommandsEnabled());
◆ testAnonymity()
ilParticipantsTestResultsTableGUITest::testAnonymity |
( |
| ) |
|
Definition at line 88 of file ilParticipantsTestResultsTableGUITest.php.
90 $this->tableGui->setAnonymity(
true);
91 $this->assertTrue($this->tableGui->getAnonymity());
93 $this->tableGui->setAnonymity(
false);
94 $this->assertFalse($this->tableGui->getAnonymity());
◆ testManageResultsCommandsEnabled()
ilParticipantsTestResultsTableGUITest::testManageResultsCommandsEnabled |
( |
| ) |
|
Definition at line 78 of file ilParticipantsTestResultsTableGUITest.php.
80 $this->assertIsBool($this->tableGui->isManageResultsCommandsEnabled());
81 $this->tableGui->setManageResultsCommandsEnabled(
true);
82 $this->assertTrue($this->tableGui->isManageResultsCommandsEnabled());
84 $this->tableGui->setManageResultsCommandsEnabled(
false);
85 $this->assertFalse($this->tableGui->isManageResultsCommandsEnabled());
◆ testNumericOrdering()
ilParticipantsTestResultsTableGUITest::testNumericOrdering |
( |
| ) |
|
Definition at line 97 of file ilParticipantsTestResultsTableGUITest.php.
99 $this->assertTrue($this->tableGui->numericOrdering(
"scored_pass"));
100 $this->assertTrue($this->tableGui->numericOrdering(
"answered_questions"));
101 $this->assertTrue($this->tableGui->numericOrdering(
"points"));
102 $this->assertTrue($this->tableGui->numericOrdering(
"percent_result"));
103 $this->assertFalse($this->tableGui->numericOrdering(
"randomText"));
◆ $parentObj_mock
◆ $tableGui
The documentation for this class was generated from the following file: