Class ilTestPassOverviewTableGUITest.
More...
◆ setUp()
| ilTestPassOverviewTableGUITest::setUp |
( |
| ) |
|
|
protected |
Reimplemented from ilTestBaseTestCase.
Definition at line 30 of file ilTestPassOverviewTableGUITest.php.
30 : void
31 {
33
34 $lng_mock = $this->createMock(ilLanguage::class);
35 $ctrl_mock = $this->createMock(ilCtrl::class);
36 $ctrl_mock->method("getFormAction")
37 ->willReturnCallback(function () {
38 return "testFormAction";
39 });
40
44 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
45 $component_factory = $this->createMock(ilComponentFactory::class);
46 $component_factory->method("getActivePluginsInSlot")->willReturn(new ArrayIterator());
49
50 $this->parentObj_mock = $this->getMockBuilder(ilTestEvaluationGUI::class)->disableOriginalConstructor()->onlyMethods(['getObject'])->getMock();
51 $this->parentObj_mock->method(
'getObject')->willReturn($this->
getTestObjMock());
53 }
Class ilTestPassOverviewTableGUI.
setGlobalVariable(string $name, mixed $value)
References getTestObjMock(), setGlobalVariable(), and setUp().
◆ test_instantiateObject_shouldReturnInstance()
| ilTestPassOverviewTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testActiveId()
| ilTestPassOverviewTableGUITest::testActiveId |
( |
| ) |
|
Definition at line 95 of file ilTestPassOverviewTableGUITest.php.
95 : void
96 {
97 $this->tableGui->setActiveId(20);
98 $this->assertEquals(20, $this->tableGui->getActiveId());
99 }
◆ testNumericOrdering()
| ilTestPassOverviewTableGUITest::testNumericOrdering |
( |
| ) |
|
Definition at line 60 of file ilTestPassOverviewTableGUITest.php.
60 : void
61 {
62 $this->assertTrue($this->tableGui->numericOrdering("pass"));
63 $this->assertTrue($this->tableGui->numericOrdering("date"));
64 $this->assertTrue($this->tableGui->numericOrdering("percentage"));
65 $this->assertFalse($this->tableGui->numericOrdering("randomText"));
66 }
◆ testObjectiveOrientedPresentationEnabled()
| ilTestPassOverviewTableGUITest::testObjectiveOrientedPresentationEnabled |
( |
| ) |
|
Definition at line 86 of file ilTestPassOverviewTableGUITest.php.
86 : void
87 {
88 $this->assertIsBool($this->tableGui->isObjectiveOrientedPresentationEnabled());
89 $this->tableGui->setObjectiveOrientedPresentationEnabled(false);
90 $this->assertFalse($this->tableGui->isObjectiveOrientedPresentationEnabled());
91 $this->tableGui->setObjectiveOrientedPresentationEnabled(true);
92 $this->assertTrue($this->tableGui->isObjectiveOrientedPresentationEnabled());
93 }
◆ testPassDeletionCommand()
| ilTestPassOverviewTableGUITest::testPassDeletionCommand |
( |
| ) |
|
Definition at line 108 of file ilTestPassOverviewTableGUITest.php.
108 : void
109 {
110 $this->assertIsString($this->tableGui->getPassDeletionCommand());
111 $this->tableGui->setPassDeletionCommand("testString");
112 $this->assertEquals("testString", $this->tableGui->getPassDeletionCommand());
113 }
◆ testPassDetailsCommand()
| ilTestPassOverviewTableGUITest::testPassDetailsCommand |
( |
| ) |
|
Definition at line 101 of file ilTestPassOverviewTableGUITest.php.
101 : void
102 {
103 $this->assertIsString($this->tableGui->getPassDetailsCommand());
104 $this->tableGui->setPassDetailsCommand("testString");
105 $this->assertEquals("testString", $this->tableGui->getPassDetailsCommand());
106 }
◆ testPdfPresentationEnabled()
| ilTestPassOverviewTableGUITest::testPdfPresentationEnabled |
( |
| ) |
|
Definition at line 77 of file ilTestPassOverviewTableGUITest.php.
77 : void
78 {
79 $this->assertIsBool($this->tableGui->isPdfPresentationEnabled());
80 $this->tableGui->setPdfPresentationEnabled(false);
81 $this->assertFalse($this->tableGui->isPdfPresentationEnabled());
82 $this->tableGui->setPdfPresentationEnabled(true);
83 $this->assertTrue($this->tableGui->isPdfPresentationEnabled());
84 }
◆ testResultPresentationEnabled()
| ilTestPassOverviewTableGUITest::testResultPresentationEnabled |
( |
| ) |
|
Definition at line 68 of file ilTestPassOverviewTableGUITest.php.
68 : void
69 {
70 $this->assertIsBool($this->tableGui->isResultPresentationEnabled());
71 $this->tableGui->setResultPresentationEnabled(false);
72 $this->assertFalse($this->tableGui->isResultPresentationEnabled());
73 $this->tableGui->setResultPresentationEnabled(true);
74 $this->assertTrue($this->tableGui->isResultPresentationEnabled());
75 }
◆ $parentObj_mock
◆ $tableGui
The documentation for this class was generated from the following file: