ILIAS  release_8 Revision v8.24
ilTestScoringTest.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
33 $this->testObj = new ilTestScoring($this->createMock(ilObjTest::class));
34 }
35
37 {
38 $this->assertInstanceOf(ilTestScoring::class, $this->testObj);
39 }
40
41 public function testPreserveManualScores(): void
42 {
43 $this->testObj->setPreserveManualScores(false);
44 $this->assertFalse($this->testObj->getPreserveManualScores());
45
46 $this->testObj->setPreserveManualScores(true);
47 $this->assertTrue($this->testObj->getPreserveManualScores());
48 }
49
50 public function testQuestionId(): void
51 {
52 $this->testObj->setQuestionId(20);
53 $this->assertEquals(20, $this->testObj->getQuestionId());
54 }
55}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_instantiateObject_shouldReturnInstance()
ilTestScoring $testObj
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...