19declare(strict_types=1);
21use PHPUnit\Framework\MockObject\MockObject;
31 protected function setUp(): void
34 $this->lng_mock = $this->createMock(ilLanguage::class);
41 $this->assertInstanceOf(ilTestAnswerOptionalQuestionsConfirmationGUI::class, $instance);
46 $expect =
'testCancelCmd';
50 $gui->setCancelCmd($expect);
52 $this->assertEquals($expect, $gui->getCancelCmd());
57 $expect =
'testConfirmCmd';
61 $gui->setConfirmCmd($expect);
63 $this->assertEquals($expect, $gui->getConfirmCmd());
Class ilTestAnswerOptionalQuestionsConfirmationGUITest.
testGetAndSetConfirmCmd()
test_instantiateObject_shouldReturnInstance()