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

Class ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest. More...

+ Inheritance diagram for ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest:
+ Collaboration diagram for ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testIntersectionQuantitySharingDefinitionList ()
 
 testOverallQuestionAmount ()
 
 testExclusiveQuestionAmount ()
 
 testAvailableSharedQuestionAmount ()
 

Protected Member Functions

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

Private Attributes

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

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::setUp ( )
protected

Definition at line 29 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

29  : void
30  {
31  parent::setUp();
32 
34  $this->createMock(ilTestRandomQuestionSetSourcePoolDefinition::class)
35  );
36  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 38 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

38  : void
39  {
40  $this->assertInstanceOf(ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculation::class, $this->testObj);
41  }

◆ testAvailableSharedQuestionAmount()

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::testAvailableSharedQuestionAmount ( )

Definition at line 65 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

65  : void
66  {
67  $availableSharedQuestionAmount = 5;
68  $this->testObj->setAvailableSharedQuestionAmount($availableSharedQuestionAmount);
69  $this->assertEquals($availableSharedQuestionAmount, $this->testObj->getAvailableSharedQuestionAmount());
70  }

◆ testExclusiveQuestionAmount()

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::testExclusiveQuestionAmount ( )

Definition at line 58 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

58  : void
59  {
60  $exclusiveQuestionAmount = 5;
61  $this->testObj->setExclusiveQuestionAmount($exclusiveQuestionAmount);
62  $this->assertEquals($exclusiveQuestionAmount, $this->testObj->getExclusiveQuestionAmount());
63  }

◆ testIntersectionQuantitySharingDefinitionList()

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::testIntersectionQuantitySharingDefinitionList ( )

Definition at line 43 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

43  : void
44  {
45  $mock = $this->createMock(ilTestRandomQuestionSetSourcePoolDefinitionList::class);
46 
47  $this->testObj->setIntersectionQuantitySharingDefinitionList($mock);
48  $this->assertEquals($mock, $this->testObj->getIntersectionQuantitySharingDefinitionList());
49  }

◆ testOverallQuestionAmount()

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::testOverallQuestionAmount ( )

Definition at line 51 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

51  : void
52  {
53  $overAllQuestionAmount = 5;
54  $this->testObj->setOverallQuestionAmount($overAllQuestionAmount);
55  $this->assertEquals($overAllQuestionAmount, $this->testObj->getOverallQuestionAmount());
56  }

Field Documentation

◆ $testObj

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculation ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::$testObj
private

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