19 declare(strict_types=1);
29 protected function setUp(): void
34 $this->createMock(ilDBInterface::class),
35 $this->getTestObjMock()
41 $this->assertInstanceOf(ilTestRandomQuestionSetSourcePoolDefinition::class, $this->testObj);
47 $this->testObj->setId(
$id);
48 $this->assertEquals(
$id, $this->testObj->getId());
54 $this->testObj->setPoolId($poolId);
55 $this->assertEquals($poolId, $this->testObj->getPoolId());
61 $this->testObj->setPoolTitle($poolTitle);
62 $this->assertEquals($poolTitle, $this->testObj->getPoolTitle());
68 $this->testObj->setPoolPath($poolPath);
69 $this->assertEquals($poolPath, $this->testObj->getPoolPath());
74 $poolQuestionCount = 5;
75 $this->testObj->setPoolQuestionCount($poolQuestionCount);
76 $this->assertEquals($poolQuestionCount, $this->testObj->getPoolQuestionCount());
82 125 => [
'nodeId' => 20],
85 $this->testObj->setOriginalTaxonomyFilter($expected);
86 $this->assertEquals($expected, $this->testObj->getOriginalTaxonomyFilter());
92 125 => [
'nodeId' => 20],
95 $this->testObj->setMappedTaxonomyFilter($expected);
96 $this->assertEquals($expected, $this->testObj->getMappedTaxonomyFilter());
106 $this->testObj->setTypeFilter($expected);
107 $this->assertEquals($expected, $this->testObj->getTypeFilter());
117 $this->testObj->setLifecycleFilter($expected);
118 $this->assertEquals($expected, $this->testObj->getLifecycleFilter());
124 $this->testObj->setQuestionAmount($questionAmount);
125 $this->assertEquals($questionAmount, $this->testObj->getQuestionAmount());
130 $sequencePosition = 5;
131 $this->testObj->setSequencePosition($sequencePosition);
132 $this->assertEquals($sequencePosition, $this->testObj->getSequencePosition());
test_instantiateObject_shouldReturnInstance()
testOriginalTaxonomyFilter()
ilTestRandomQuestionSetSourcePoolDefinition $testObj
Class ilTestRandomQuestionSetSourcePoolDefinitionTest.
testMappedTaxonomyFilter()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins