3 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);
53 $this->assertEquals($expected[1236], $this->testObj->getQuestionRelatedObjectives(1236));
61 1236 => [9, 10, 11, 12],
64 foreach ($expected as
$key => $value) {
65 $this->testObj->addQuestionRelatedObjectives(
$key, $value);
68 $this->assertEquals(3, $this->testObj->hasQuestionRelatedObjectives(12));