ILIAS  release_8 Revision v8.24
ilTestAnswerOptionalQuestionsConfirmationGUITest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
27 protected $lng_mock;
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32 $this->lng_mock = $this->createMock(ilLanguage::class);
33 }
34
36 {
37 $instance = new ilTestAnswerOptionalQuestionsConfirmationGUI($this->lng_mock);
38
39 $this->assertInstanceOf(ilTestAnswerOptionalQuestionsConfirmationGUI::class, $instance);
40 }
41
42 public function testGetAndSetCancelCmd(): void
43 {
44 $expect = "testCancelCmd";
45
46 $gui = new ilTestAnswerOptionalQuestionsConfirmationGUI($this->lng_mock);
47
48 $gui->setCancelCmd($expect);
49
50 $this->assertEquals($expect, $gui->getCancelCmd());
51 }
52
53 public function testGetAndSetConfirmCmd(): void
54 {
55 $expect = "testConfirmCmd";
56
57 $gui = new ilTestAnswerOptionalQuestionsConfirmationGUI($this->lng_mock);
58
59 $gui->setConfirmCmd($expect);
60
61 $this->assertEquals($expect, $gui->getConfirmCmd());
62 }
63}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTestBaseClass.