19 declare(strict_types=1);
29 protected function setUp(): void
39 $this->assertInstanceOf(ilTestPlayerConfirmationModal::class, $this->testObj);
44 $this->testObj->setModalId(
"12345");
45 $this->assertEquals(
"12345", $this->testObj->getModalId());
50 $this->testObj->setHeaderText(
"testString");
51 $this->assertEquals(
"testString", $this->testObj->getHeaderText());
56 $this->testObj->setConfirmationText(
"testString");
57 $this->assertEquals(
"testString", $this->testObj->getConfirmationText());
62 $this->testObj->setConfirmationCheckboxName(
"testString");
63 $this->assertEquals(
"testString", $this->testObj->getConfirmationCheckboxName());
68 $this->testObj->setConfirmationCheckboxLabel(
"testString");
69 $this->assertEquals(
"testString", $this->testObj->getConfirmationCheckboxLabel());
79 foreach ([51, 291, 15, 681] as
$id) {
81 $expected[] = $hiddenInput;
84 foreach ($expected as $hiddenInput) {
85 $this->testObj->addParameter($hiddenInput);
88 $this->assertEquals($expected, $this->testObj->getParameters());
93 $this->assertFalse($this->testObj->isConfirmationCheckboxRequired());
95 $this->testObj->setConfirmationCheckboxName(
"testName");
96 $this->testObj->setConfirmationCheckboxLabel(
"testLabel");
97 $this->assertTrue($this->testObj->isConfirmationCheckboxRequired());
test_instantiateObject_shouldReturnInstance()
testIsConfirmationCheckboxRequired()
testConfirmationCheckboxName()
Class ilTestPlayerConfirmationModalTest.
ilTestPlayerConfirmationModal $testObj
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
testConfirmationCheckboxLabel()