ILIAS  release_8 Revision v8.24
ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculationTest.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(ilTestRandomQuestionSetSourcePoolDefinition::class)
35 );
36 }
37
39 {
40 $this->assertInstanceOf(ilTestRandomQuestionsSrcPoolDefinitionQuantitiesCalculation::class, $this->testObj);
41 }
42
44 {
45 $mock = $this->createMock(ilTestRandomQuestionSetSourcePoolDefinitionList::class);
46
47 $this->testObj->setIntersectionQuantitySharingDefinitionList($mock);
48 $this->assertEquals($mock, $this->testObj->getIntersectionQuantitySharingDefinitionList());
49 }
50
51 public function testOverallQuestionAmount(): void
52 {
53 $this->testObj->setOverallQuestionAmount(5);
54 $this->assertEquals(5, $this->testObj->getOverallQuestionAmount());
55 }
56
57 public function testExclusiveQuestionAmount(): void
58 {
59 $this->testObj->setExclusiveQuestionAmount(5);
60 $this->assertEquals(5, $this->testObj->getExclusiveQuestionAmount());
61 }
62
63 public function testAvailableSharedQuestionAmount(): void
64 {
65 $this->testObj->setAvailableSharedQuestionAmount(5);
66 $this->assertEquals(5, $this->testObj->getAvailableSharedQuestionAmount());
67 }
68}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...