ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSettingsChangeConfirmationGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
30 
31  protected function setUp(): void
32  {
33  parent::setUp();
34 
35  $this->testSettingsChangeConfirmationGUI = new ilTestSettingsChangeConfirmationGUI(
36  $this->createMock(RequestDataCollector::class),
37  $this->createMock(ilObjTest::class)
38  );
39  }
40 
41  public function testSetAndGetOldQuestionSetType(): void
42  {
43  $expect = 'testType';
44 
45  $this->testSettingsChangeConfirmationGUI->setOldQuestionSetType($expect);
46 
47  $this->assertEquals($expect, $this->testSettingsChangeConfirmationGUI->getOldQuestionSetType());
48  }
49 
50  public function testSetAndGetNewQuestionSetType(): void
51  {
52  $expect = 'testType';
53 
54  $this->testSettingsChangeConfirmationGUI->setNewQuestionSetType($expect);
55 
56  $this->assertEquals($expect, $this->testSettingsChangeConfirmationGUI->getNewQuestionSetType());
57  }
58 
59  public function testSetAndIsQuestionLossInfoEnabled(): void
60  {
61  $expect = true;
62 
63  $this->testSettingsChangeConfirmationGUI->setQuestionLossInfoEnabled($expect);
64 
65  $this->assertEquals($expect, $this->testSettingsChangeConfirmationGUI->isQuestionLossInfoEnabled());
66  }
67 }
Class ilTestSettingsChangeConfirmationGUITest.
ilTestSettingsChangeConfirmationGUI $testSettingsChangeConfirmationGUI