ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestRandomQuestionSetStagingPoolQuestionTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestRandomQuestionSetStagingPoolQuestion($this->createMock(ilDBInterface::class));
34 }
35
37 {
38 $this->assertInstanceOf(ilTestRandomQuestionSetStagingPoolQuestion::class, $this->testObj);
39 }
40
41 public function testTestId(): void
42 {
43 $testId = 5;
44 $this->testObj->setTestId($testId);
45 $this->assertEquals($testId, $this->testObj->getTestId());
46 }
47
48 public function testPoolId(): void
49 {
50 $poolId = 5;
51 $this->testObj->setPoolId($poolId);
52 $this->assertEquals($poolId, $this->testObj->getPoolId());
53 }
54
55 public function testQuestionId(): void
56 {
57 $questionId = 5;
58 $this->testObj->setQuestionId($questionId);
59 $this->assertEquals($questionId, $this->testObj->getQuestionId());
60 }
61}
Class ilTestBaseClass.