ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilTestResultsToXMLTest Class Reference

Class ilTestResultsToXMLTest. More...

+ Inheritance diagram for ilTestResultsToXMLTest:
+ Collaboration diagram for ilTestResultsToXMLTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testIncludeRandomTestQuestionsEnabled ()
 
- 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

ilTestResultsToXML $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()

ilTestResultsToXMLTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestResultsToXMLTest.php.

29 : void
30 {
31 global $DIC;
32 parent::setUp();
33
34 $this->testObj = new ilTestResultsToXML(
35 $this->createMock(ilObjTest::class),
36 $DIC['ilDB'],
37 $DIC['resource_storage'],
38 $DIC['ilUser'],
39 $DIC['lng'],
40 ''
41 );
42 }
global $DIC
Definition: shib_login.php:26

References $DIC.

◆ test_instantiateObject_shouldReturnInstance()

ilTestResultsToXMLTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 44 of file ilTestResultsToXMLTest.php.

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

◆ testIncludeRandomTestQuestionsEnabled()

ilTestResultsToXMLTest::testIncludeRandomTestQuestionsEnabled ( )

Definition at line 49 of file ilTestResultsToXMLTest.php.

49 : void
50 {
51 $this->testObj->setIncludeRandomTestQuestionsEnabled(false);
52 $this->assertFalse($this->testObj->isIncludeRandomTestQuestionsEnabled());
53
54 $this->testObj->setIncludeRandomTestQuestionsEnabled(true);
55 $this->assertTrue($this->testObj->isIncludeRandomTestQuestionsEnabled());
56 }

Field Documentation

◆ $testObj

ilTestResultsToXML ilTestResultsToXMLTest::$testObj
private

Definition at line 27 of file ilTestResultsToXMLTest.php.


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