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 ilTestDynamicQuestionSetStatisticTableGUITest
- Author
- Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de
Definition at line 25 of file ilTestDynamicQuestionSetStatisticTableGUITest.php.
◆ setUp()
ilTestDynamicQuestionSetStatisticTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file ilTestDynamicQuestionSetStatisticTableGUITest.php.
References ilTestBaseTestCase\setGlobalVariable().
34 $lng_mock = $this->createMock(ilLanguage::class);
35 $lng_mock->expects($this->any())
37 ->willReturnCallback(
function () {
38 return "testTranslation";
40 $ctrl_mock = $this->createMock(ilCtrl::class);
41 $ctrl_mock->expects($this->any())
42 ->method(
"getFormAction")
43 ->willReturnCallback(
function () {
44 return "testFormAction";
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->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods(array(
'getObject'))->getMock();
57 $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
61 $this->parentObj_mock,
setGlobalVariable(string $name, $value)
◆ test_instantiateObject_shouldReturnInstance()
ilTestDynamicQuestionSetStatisticTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testAnswerStatusFilterEnabled()
ilTestDynamicQuestionSetStatisticTableGUITest::testAnswerStatusFilterEnabled |
( |
| ) |
|
Definition at line 97 of file ilTestDynamicQuestionSetStatisticTableGUITest.php.
99 $this->assertIsBool($this->tableGui->isAnswerStatusFilterEnabled());
100 $this->tableGui->setAnswerStatusFilterEnabled(
false);
101 $this->assertFalse($this->tableGui->isAnswerStatusFilterEnabled());
102 $this->tableGui->setAnswerStatusFilterEnabled(
true);
103 $this->assertTrue($this->tableGui->isAnswerStatusFilterEnabled());
◆ testFilterSelection()
ilTestDynamicQuestionSetStatisticTableGUITest::testFilterSelection |
( |
| ) |
|
Definition at line 72 of file ilTestDynamicQuestionSetStatisticTableGUITest.php.
74 $this->assertNull($this->tableGui->getFilterSelection());
77 $this->assertInstanceOf(
78 ilTestDynamicQuestionSetFilterSelection::class,
79 $this->tableGui->getFilterSelection()
◆ testInitTitle()
ilTestDynamicQuestionSetStatisticTableGUITest::testInitTitle |
( |
| ) |
|
◆ testTaxIds()
ilTestDynamicQuestionSetStatisticTableGUITest::testTaxIds |
( |
| ) |
|
Definition at line 89 of file ilTestDynamicQuestionSetStatisticTableGUITest.php.
91 $this->assertIsArray($this->tableGui->getTaxIds());
92 $expected = [10, 1250, 1233591, 12350];
93 $this->tableGui->setTaxIds($expected);
94 $this->assertEquals($expected, $this->tableGui->getTaxIds());
◆ testTaxonomyFilterEnabled()
ilTestDynamicQuestionSetStatisticTableGUITest::testTaxonomyFilterEnabled |
( |
| ) |
|
Definition at line 106 of file ilTestDynamicQuestionSetStatisticTableGUITest.php.
108 $this->assertIsBool($this->tableGui->isTaxonomyFilterEnabled());
109 $this->tableGui->setTaxonomyFilterEnabled(
false);
110 $this->assertFalse($this->tableGui->isTaxonomyFilterEnabled());
111 $this->tableGui->setTaxonomyFilterEnabled(
true);
112 $this->assertTrue($this->tableGui->isTaxonomyFilterEnabled());
◆ $parentObj_mock
ilObjTestGUI ilTestDynamicQuestionSetStatisticTableGUITest::$parentObj_mock |
|
private |
◆ $tableGui
The documentation for this class was generated from the following file: