ILIAS  release_8 Revision v8.24
ilTestRandomQuestionsQuantitiesDistributionTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
34 $this->createMock(
35 ilTestRandomSourcePoolDefinitionQuestionCollectionProvider::class
36 )
37 );
38 }
39
41 {
42 $this->assertInstanceOf(ilTestRandomQuestionsQuantitiesDistribution::class, $this->testObj);
43 }
44
45 public function testQuestionCollectionProvider(): void
46 {
47 $mock = $this->createMock(ilTestRandomSourcePoolDefinitionQuestionCollectionProvider::class);
48
49 $this->testObj->setQuestionCollectionProvider($mock);
50 $this->assertEquals($mock, $this->testObj->getQuestionCollectionProvider());
51 }
52
53 public function testSourcePoolDefinitionList(): void
54 {
55 $mock = $this->createMock(ilTestRandomQuestionSetSourcePoolDefinitionList::class);
56
57 $this->testObj->setSourcePoolDefinitionList($mock);
58 $this->assertEquals($mock, $this->testObj->getSourcePoolDefinitionList());
59 }
60}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...