ILIAS  release_8 Revision v8.24
ilTestFixedQuestionSetConfigTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21use PHPUnit\Framework\MockObject\MockObject;
22
28{
34
35 protected function setUp(): void
36 {
37 parent::setUp();
38
39 $this->objTest_mock = $this->createMock(ilObjTest::class);
40
41 $this->testObj = new ilTestFixedQuestionSetConfig(
42 $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
43 $this->createMock(ilDBInterface::class),
44 $this->createMock(ilComponentRepository::class),
45 $this->objTest_mock
46 );
47 }
48
50 {
51 $this->assertInstanceOf(ilTestFixedQuestionSetConfig::class, $this->testObj);
52 }
53
54 public function testIsQuestionSetConfigured(): void
55 {
56 $this->assertFalse($this->testObj->isQuestionSetConfigured());
57 }
58
60 {
61 $this->assertFalse($this->testObj->doesQuestionSetRelatedDataExist());
62 }
63}
Class ilTestBaseClass.
Class ilTestFixedQuestionSetConfigTest.