ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assQuestionTest.php
Go to the documentation of this file.
1<?php
2
29{
30 protected $backupGlobals = false;
31
33
34 protected function setUp(): 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 }
95
96 public function testConstruct(): void
97 {
98 $this->assertInstanceOf(assQuestion::class, $this->object);
99 }
100}
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assQuestion $object
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.