ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestRandomQuestionSetQuestionTest Class Reference

Class ilTestRandomQuestionSetQuestionTest. More...

+ Inheritance diagram for ilTestRandomQuestionSetQuestionTest:
+ Collaboration diagram for ilTestRandomQuestionSetQuestionTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testQuestionId ()
 
 testSequencePosition ()
 
 testSourcePoolDefinitionId ()
 

Protected Member Functions

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

Private Attributes

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

ilTestRandomQuestionSetQuestionTest::setUp ( )
protected

Definition at line 29 of file ilTestRandomQuestionSetQuestionTest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestRandomQuestionSetQuestion();
34  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestRandomQuestionSetQuestionTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestRandomQuestionSetQuestionTest.php.

36  : void
37  {
38  $this->assertInstanceOf(ilTestRandomQuestionSetQuestion::class, $this->testObj);
39  }

◆ testQuestionId()

ilTestRandomQuestionSetQuestionTest::testQuestionId ( )

Definition at line 41 of file ilTestRandomQuestionSetQuestionTest.php.

41  : void
42  {
43  $questionId = 125;
44  $this->testObj->setQuestionId($questionId);
45  $this->assertEquals($questionId, $this->testObj->getQuestionId());
46  }

◆ testSequencePosition()

ilTestRandomQuestionSetQuestionTest::testSequencePosition ( )

Definition at line 48 of file ilTestRandomQuestionSetQuestionTest.php.

48  : void
49  {
50  $sequencePosition = 125;
51  $this->testObj->setSequencePosition($sequencePosition);
52  $this->assertEquals($sequencePosition, $this->testObj->getSequencePosition());
53  }

◆ testSourcePoolDefinitionId()

ilTestRandomQuestionSetQuestionTest::testSourcePoolDefinitionId ( )

Definition at line 55 of file ilTestRandomQuestionSetQuestionTest.php.

55  : void
56  {
57  $sourcePoolDefinitionId = 125;
58  $this->testObj->setSourcePoolDefinitionId($sourcePoolDefinitionId);
59  $this->assertEquals($sourcePoolDefinitionId, $this->testObj->getSourcePoolDefinitionId());
60  }

Field Documentation

◆ $testObj

ilTestRandomQuestionSetQuestion ilTestRandomQuestionSetQuestionTest::$testObj
private

Definition at line 27 of file ilTestRandomQuestionSetQuestionTest.php.


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