ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
}
getTestObjMock
getTestObjMock()
Definition:
ilTestBaseTestCaseTrait.php:444
addGlobal_http
addGlobal_http()
Definition:
ilTestBaseTestCaseTrait.php:331
addGlobal_ilCtrl
addGlobal_ilCtrl()
Definition:
ilTestBaseTestCaseTrait.php:214
QuestionsOfAttemptTable
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest\$table
QuestionsOfAttemptTable $table
Definition:
QuestionsOfAttemptTableTest.php:28
Factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addGlobal_ilUser
addGlobal_ilUser()
Definition:
ilTestBaseTestCaseTrait.php:184
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest
Definition:
QuestionsOfAttemptTableTest.php:26
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\Test\Tests\Questions\Presentation
Definition:
QuestionsOfAttemptTableTest.php:21
addGlobal_lng
addGlobal_lng()
Definition:
ilTestBaseTestCaseTrait.php:219
ilTestBaseTestCase
Class ilTestBaseClass.
Definition:
ilTestBaseTestCase.php:30
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest\setUp
setUp()
Definition:
QuestionsOfAttemptTableTest.php:30
ILIAS\Test\Questions\Presentation\QuestionsOfAttemptTable
Definition:
QuestionsOfAttemptTable.php:35
ILIAS\Test\Tests\Questions\Presentation\QuestionsOfAttemptTableTest\test_instantiateObject_shouldReturnInstance
test_instantiateObject_shouldReturnInstance()
Definition:
QuestionsOfAttemptTableTest.php:56
components
ILIAS
Test
tests
Questions
Presentation
QuestionsOfAttemptTableTest.php
Generated on Sun Aug 31 2025 23:04:00 for ILIAS by
1.8.13 (using
Doxyfile
)