3 declare(strict_types=1);
29 protected function setUp(): void
33 $ctrl_mock = $this->createMock(ilCtrl::class);
34 $lng_mock = $this->createMock(ilLanguage::class);
37 $parentGui_mock = $this->createMock(ilTestSkillEvaluationGUI::class);
48 $this->assertInstanceOf(ilTestSkillEvaluationToolbarGUI::class, $this->toolbarGUI);
53 $expected = [
"test1",
"test2",
"test3"];
55 $this->toolbarGUI->setAvailableSkillProfiles($expected);
57 $this->assertEquals($expected, $this->toolbarGUI->getAvailableSkillProfiles());
62 $this->toolbarGUI->setNoSkillProfileOptionEnabled(
true);
63 $this->assertTrue($this->toolbarGUI->isNoSkillProfileOptionEnabled());
65 $this->toolbarGUI->setNoSkillProfileOptionEnabled(
false);
66 $this->assertFalse($this->toolbarGUI->isNoSkillProfileOptionEnabled());
71 $this->toolbarGUI->setSelectedEvaluationMode(
"testString");
72 $this->assertEquals(
"testString", $this->toolbarGUI->getSelectedEvaluationMode());
81 $this->assertEquals(102, $result);
84 [
"randomKey" =>
"102"]
87 $this->assertEquals(0, $result);
setGlobalVariable(string $name, $value)