This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
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 ilTestRandomQuestionSetSourcePoolDefinitionListTest
- Author
- Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de
Definition at line 25 of file ilTestRandomQuestionSetSourcePoolDefinitionListTest.php.
◆ setUp()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testAddDefinition()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testAddDefinition |
( |
| ) |
|
◆ testGetDefinition()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testGetDefinition |
( |
| ) |
|
Definition at line 97 of file ilTestRandomQuestionSetSourcePoolDefinitionListTest.php.
100 $this->createMock(ilDBInterface::class),
101 $this->createMock(ilObjTest::class)
103 $expected->setId(20);
104 $this->testObj->addDefinition($expected);
106 $this->assertEquals($expected, $this->testObj->getDefinition(20));
◆ testGetDefinitionBySourcePoolId()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testGetDefinitionBySourcePoolId |
( |
| ) |
|
Definition at line 109 of file ilTestRandomQuestionSetSourcePoolDefinitionListTest.php.
112 $this->createMock(ilDBInterface::class),
113 $this->createMock(ilObjTest::class)
115 $expected->setId(20);
116 $expected->setPoolId(11);
117 $this->testObj->addDefinition($expected);
119 $this->assertEquals($expected, $this->testObj->getDefinitionBySourcePoolId(11));
◆ testGetDefinitionCount()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testGetDefinitionCount |
( |
| ) |
|
Definition at line 135 of file ilTestRandomQuestionSetSourcePoolDefinitionListTest.php.
138 $this->createMock(ilDBInterface::class),
139 $this->createMock(ilObjTest::class)
141 $expected->setId(20);
142 $expected->setPoolId(11);
143 $this->testObj->addDefinition($expected);
145 $this->assertEquals(1, $this->testObj->getDefinitionCount());
◆ testGetDefinitionIds()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testGetDefinitionIds |
( |
| ) |
|
Definition at line 122 of file ilTestRandomQuestionSetSourcePoolDefinitionListTest.php.
125 $this->createMock(ilDBInterface::class),
126 $this->createMock(ilObjTest::class)
128 $expected->setId(20);
129 $expected->setPoolId(11);
130 $this->testObj->addDefinition($expected);
132 $this->assertEquals([20], $this->testObj->getDefinitionIds());
◆ testHasDefinition()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testHasDefinition |
( |
| ) |
|
◆ testHasTrashedPool()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testHasTrashedPool |
( |
| ) |
|
◆ testIsTrashedPool()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testIsTrashedPool |
( |
| ) |
|
◆ testSetTrashedPools()
ilTestRandomQuestionSetSourcePoolDefinitionListTest::testSetTrashedPools |
( |
| ) |
|
◆ $testObj
The documentation for this class was generated from the following file: