ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestFixedQuestionSetConfigTest Class Reference

Class ilTestFixedQuestionSetConfigTest. More...

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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testIsQuestionSetConfigured ()
 
 testDoesQuestionSetRelatedDataExist ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

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=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestFixedQuestionSetConfigTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

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 \BackgroundTasks Contains several chained tasks and infos about them.

References getTestObjMock().

+ Here is the call graph for this function:

◆ 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: