19 declare(strict_types=1);
29 protected function setUp(): void
38 $this->assertInstanceOf(ilTestQuestionRelatedObjectivesList::class, $this->testObj);
46 1236 => [9, 10, 11, 12],
47 12 => [13, 14, 15, 16]
49 foreach ($expected as $key => $value) {
50 $this->testObj->addQuestionRelatedObjectives($key, $value);
52 $this->assertEquals($value, $this->testObj->getQuestionRelatedObjectives($key));
61 1236 => [9, 10, 11, 12],
64 foreach ($expected as $key => $value) {
65 $this->testObj->addQuestionRelatedObjectives($key, $value);
67 $this->assertEquals((
bool) count($value), $this->testObj->hasQuestionRelatedObjectives($key));