ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestFixedQuestionSetConfigTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
33  private $objTest_mock;
34 
35  protected function setUp(): void
36  {
37  global $DIC;
38  parent::setUp();
39 
40  $this->addGlobal_lng();
41  $this->addGlobal_ilLog();
43 
44  $this->objTest_mock = $this->createMock(ilObjTest::class);
45 
46  $this->testObj = new ilTestFixedQuestionSetConfig(
47  $DIC['tree'],
48  $DIC['ilDB'],
49  $DIC['lng'],
50  $DIC['ilLog'],
51  $DIC['component.repository'],
52  $this->objTest_mock,
53  $this->createMock(\ILIAS\TestQuestionPool\QuestionInfoService::class)
54  );
55  }
56 
58  {
59  $this->assertInstanceOf(ilTestFixedQuestionSetConfig::class, $this->testObj);
60  }
61 
62  public function testIsQuestionSetConfigured(): void
63  {
64  $this->assertFalse($this->testObj->isQuestionSetConfigured());
65  }
66 
67  public function testDoesQuestionSetRelatedDataExist(): void
68  {
69  $this->assertFalse($this->testObj->doesQuestionSetRelatedDataExist());
70  }
71 }
Class ChatMainBarProvider .
global $DIC
Definition: feed.php:28
Class ilTestFixedQuestionSetConfigTest.
Class ilTestBaseClass.