ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assQuestionTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for assQuestionTest:
+ Collaboration diagram for assQuestionTest:

Public Member Functions

 testConstruct ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 getIRSSMock ()
 

Protected Attributes

 $backupGlobals = false
 
- Protected Attributes inherited from assBaseTestCase
Container $dic = null
 

Private Attributes

assQuestion $object
 

Detailed Description

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 Unit tests

Author
Matheus Zych mzych.nosp@m.@dat.nosp@m.abay..nosp@m.de

\

This test was automatically generated.

Definition at line 28 of file assQuestionTest.php.

Member Function Documentation

◆ setUp()

assQuestionTest::setUp ( )
protected

Reimplemented from assBaseTestCase.

Definition at line 34 of file assQuestionTest.php.

34 : void
35 {
36 parent::setUp();
37
38 $this->object = new class () extends assQuestion {
39 public function isComplete(): bool
40 {
41 return true;
42 }
43
44 public function saveWorkingData(int $active_id, ?int $pass = null, bool $authorized = true): bool
45 {
46 return true;
47 }
48
49 public function getAdditionalTableName(): string
50 {
51 return '';
52 }
53
54 public function getAnswerTableName(): string
55 {
56 return '';
57 }
58
59 public function calculateReachedPoints(
60 int $active_id,
61 ?int $pass = null,
62 bool $authorizedSolution = true
63 ): float {
64 return 0.0;
65 }
66
67 public function getQuestionType(): string
68 {
69 return '';
70 }
71
72 public function duplicate(bool $for_test = true, string $title = "", string $author = "", int $owner = -1, $testObjId = null): int
73 {
74 return 0;
75 }
76
77 public function toLog(\ILIAS\Test\Logging\AdditionalInformationGenerator $additional_info): array
78 {
79 return [];
80 }
81
82 public function solutionValuesToLog(
83 \ILIAS\Test\Logging\AdditionalInformationGenerator $additional_info,
84 array $solution_values
85 ): array {
86 return [];
87 }
88
89 public function solutionValuesToText(array $solution_values): array|string
90 {
91 return '';
92 }
93 };
94 }
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

◆ testConstruct()

assQuestionTest::testConstruct ( )

Definition at line 96 of file assQuestionTest.php.

96 : void
97 {
98 $this->assertInstanceOf(assQuestion::class, $this->object);
99 }

Field Documentation

◆ $backupGlobals

assQuestionTest::$backupGlobals = false
protected

Definition at line 30 of file assQuestionTest.php.

◆ $object

assQuestion assQuestionTest::$object
private

Definition at line 32 of file assQuestionTest.php.


The documentation for this class was generated from the following file: