ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilTestResultsToXMLTest Class Reference

Class ilTestResultsToXMLTest. More...

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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testIncludeRandomTestQuestionsEnabled ()
 

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=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestResultsToXMLTest::setUp ( )
protected

Definition at line 29 of file ilTestResultsToXMLTest.php.

References $DIC.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestResultsToXMLTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 43 of file ilTestResultsToXMLTest.php.

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

◆ testIncludeRandomTestQuestionsEnabled()

ilTestResultsToXMLTest::testIncludeRandomTestQuestionsEnabled ( )

Definition at line 48 of file ilTestResultsToXMLTest.php.

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

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: