19 declare(strict_types=1);
29 protected function setUp(): void
34 $this->createMock(ilDBInterface::class),
35 $this->getTestObjMock()
41 $this->assertInstanceOf(ilTestRandomQuestionSetSourcePoolDefinitionFactory::class, $this->testObj);
49 "qpl_title" =>
"testTitle",
50 "qpl_path" =>
"test/path",
54 $result = $this->testObj->getSourcePoolDefinitionByOriginalPoolData($originalPoolData);
55 $this->assertEquals($originalPoolData[
"qpl_id"], $result->getPoolId());
56 $this->assertEquals($originalPoolData[
"qpl_ref_id"], $result->getPoolRefId());
57 $this->assertEquals($originalPoolData[
"qpl_title"], $result->getPoolTitle());
58 $this->assertEquals($originalPoolData[
"qpl_path"], $result->getPoolPath());
59 $this->assertEquals($originalPoolData[
"count"], $result->getPoolQuestionCount());
64 $this->assertInstanceOf(
65 ilTestRandomQuestionSetSourcePoolDefinition::class,
66 $this->testObj->getEmptySourcePoolDefinition()
testGetEmptySourcePoolDefinition()
testGetSourcePoolDefinitionByOriginalPoolData()
Class ilTestRandomQuestionSetSourcePoolDefinitionFactoryTest.
test_instantiateObject_shouldReturnInstance()
ilTestRandomQuestionSetSourcePoolDefinitionFactory $testObj