ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
QuestionsOfAttemptTableTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Test\Tests\Questions\Presentation
;
22
23
use
ILIAS\Data\Factory
;
24
use
ILIAS\Test\Questions\Presentation\QuestionsOfAttemptTable
;
25
26
class
QuestionsOfAttemptTableTest
extends
\ilTestBaseTestCase
27
{
28
private
QuestionsOfAttemptTable
$table
;
29
30
protected
function
setUp
(): void
31
{
32
global
$DIC
;
33
parent::setUp();
34
35
$this->
addGlobal_ilCtrl
();
36
$this->
addGlobal_lng
();
37
$this->
addGlobal_http
();
38
$this->
addGlobal_ilUser
();
39
40
$test_obj_mock = $this->
getTestObjMock
();
41
$parent_gui_mock = $this->createMock(\ilTestPlayerAbstractGUI::class);
42
43
$this->table =
new
QuestionsOfAttemptTable
(
44
$DIC
[
'lng'
],
45
$DIC
[
'ilCtrl'
],
46
$DIC
[
'ui.factory'
],
47
$this->createMock(Factory::class),
48
$DIC
[
'http'
],
49
$parent_gui_mock,
50
$test_obj_mock,
51
[]
52
);
53
54
}
55
56
public
function
test_instantiateObject_shouldReturnInstance
(): void
57
{
58
$this->assertInstanceOf(QuestionsOfAttemptTable::class, $this->table);
59
}
60
61
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
ILIAS\Test\Questions\Presentation\QuestionsOfAttemptTable
Definition:
QuestionsOfAttemptTable.php:36
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest
Definition:
QuestionsOfAttemptTableTest.php:27
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest\$table
QuestionsOfAttemptTable $table
Definition:
QuestionsOfAttemptTableTest.php:28
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest\test_instantiateObject_shouldReturnInstance
test_instantiateObject_shouldReturnInstance()
Definition:
QuestionsOfAttemptTableTest.php:56
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest\setUp
setUp()
Definition:
QuestionsOfAttemptTableTest.php:30
ilTestBaseTestCase
Class ilTestBaseClass.
Definition:
ilTestBaseTestCase.php:31
getTestObjMock
getTestObjMock()
Definition:
ilTestBaseTestCaseTrait.php:453
addGlobal_lng
addGlobal_lng()
Definition:
ilTestBaseTestCaseTrait.php:220
addGlobal_ilCtrl
addGlobal_ilCtrl()
Definition:
ilTestBaseTestCaseTrait.php:215
addGlobal_http
addGlobal_http()
Definition:
ilTestBaseTestCaseTrait.php:332
addGlobal_ilUser
addGlobal_ilUser()
Definition:
ilTestBaseTestCaseTrait.php:185
ILIAS\Test\Tests\Questions\Presentation
Definition:
QuestionsOfAttemptTableTest.php:21
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
Test
tests
Questions
Presentation
QuestionsOfAttemptTableTest.php
Generated on Sat Oct 18 2025 23:04:32 for ILIAS by
1.9.4 (using
Doxyfile
)