ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 

Private Attributes

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculation $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

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 63 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

63  : void
64  {
65  $this->testObj->setAvailableSharedQuestionAmount(5);
66  $this->assertEquals(5, $this->testObj->getAvailableSharedQuestionAmount());
67  }

◆ testExclusiveQuestionAmount()

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::testExclusiveQuestionAmount ( )

Definition at line 57 of file ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.php.

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

◆ 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  $this->testObj->setOverallQuestionAmount(5);
54  $this->assertEquals(5, $this->testObj->getOverallQuestionAmount());
55  }

Field Documentation

◆ $testObj

ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculation ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest::$testObj
private

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