ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestFixedQuestionSetConfigTest Class Reference

Class ilTestFixedQuestionSetConfigTest. More...

+ Inheritance diagram for ilTestFixedQuestionSetConfigTest:
+ Collaboration diagram for ilTestFixedQuestionSetConfigTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testIsQuestionSetConfigured ()
 
 testDoesQuestionSetRelatedDataExist ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestFixedQuestionSetConfig $testObj
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestFixedQuestionSetConfigTest::setUp ( )
protected

Definition at line 29 of file ilTestFixedQuestionSetConfigTest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $test_logger = $this->createMock(ILIAS\Test\Logging\TestLogger::class);
34  $this->testObj = new ilTestFixedQuestionSetConfig(
35  $this->createMock(ilTree::class),
36  $this->createMock(ilDBInterface::class),
37  $this->createMock(ilLanguage::class),
38  $test_logger,
39  $this->createMock(ilComponentRepository::class),
40  $this->getTestObjMock(),
41  $this->createMock(\ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::class),
42  );
43  }
Interface Observer Contains several chained tasks and infos about them.

◆ test_instantiateObject_shouldReturnInstance()

ilTestFixedQuestionSetConfigTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 45 of file ilTestFixedQuestionSetConfigTest.php.

45  : void
46  {
47  $this->assertInstanceOf(ilTestFixedQuestionSetConfig::class, $this->testObj);
48  }

◆ testDoesQuestionSetRelatedDataExist()

ilTestFixedQuestionSetConfigTest::testDoesQuestionSetRelatedDataExist ( )

Definition at line 55 of file ilTestFixedQuestionSetConfigTest.php.

55  : void
56  {
57  $this->assertFalse($this->testObj->doesQuestionSetRelatedDataExist());
58  }

◆ testIsQuestionSetConfigured()

ilTestFixedQuestionSetConfigTest::testIsQuestionSetConfigured ( )

Definition at line 50 of file ilTestFixedQuestionSetConfigTest.php.

50  : void
51  {
52  $this->assertFalse($this->testObj->isQuestionSetConfigured());
53  }

Field Documentation

◆ $testObj

ilTestFixedQuestionSetConfig ilTestFixedQuestionSetConfigTest::$testObj
private

Definition at line 27 of file ilTestFixedQuestionSetConfigTest.php.


The documentation for this class was generated from the following file: