ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestRandomQuestionsQuantitiesDistributionTest 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 ilTestRandomQuestionsQuantitiesDistributionTest:
+ Collaboration diagram for ilTestRandomQuestionsQuantitiesDistributionTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testQuestionCollectionProvider ()
 
 testSourcePoolDefinitionList ()
 

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

ilTestRandomQuestionsQuantitiesDistribution $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 ilTestRandomQuestionsQuantitiesDistributionTest

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

Definition at line 25 of file ilTestRandomQuestionsQuantitiesDistributionTest.php.

Member Function Documentation

◆ setUp()

ilTestRandomQuestionsQuantitiesDistributionTest::setUp ( )
protected

Definition at line 29 of file ilTestRandomQuestionsQuantitiesDistributionTest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestRandomQuestionsQuantitiesDistributionTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 40 of file ilTestRandomQuestionsQuantitiesDistributionTest.php.

40  : void
41  {
42  $this->assertInstanceOf(ilTestRandomQuestionsQuantitiesDistribution::class, $this->testObj);
43  }

◆ testQuestionCollectionProvider()

ilTestRandomQuestionsQuantitiesDistributionTest::testQuestionCollectionProvider ( )

Definition at line 45 of file ilTestRandomQuestionsQuantitiesDistributionTest.php.

45  : void
46  {
47  $mock = $this->createMock(ilTestRandomSourcePoolDefinitionQuestionCollectionProvider::class);
48 
49  $this->testObj->setQuestionCollectionProvider($mock);
50  $this->assertEquals($mock, $this->testObj->getQuestionCollectionProvider());
51  }

◆ testSourcePoolDefinitionList()

ilTestRandomQuestionsQuantitiesDistributionTest::testSourcePoolDefinitionList ( )

Definition at line 53 of file ilTestRandomQuestionsQuantitiesDistributionTest.php.

53  : void
54  {
55  $mock = $this->createMock(ilTestRandomQuestionSetSourcePoolDefinitionList::class);
56 
57  $this->testObj->setSourcePoolDefinitionList($mock);
58  $this->assertEquals($mock, $this->testObj->getSourcePoolDefinitionList());
59  }

Field Documentation

◆ $testObj

ilTestRandomQuestionsQuantitiesDistribution ilTestRandomQuestionsQuantitiesDistributionTest::$testObj
private

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