Class TestScoringTest.
More...
◆ setUp()
TestScoringTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 32 of file TestScoringTest.php.
References getTestObjMock().
38 $this->createMock(ilObjUser::class),
39 $this->createMock(ilDBInterface::class),
40 $this->createMock(TestResultRepository::class)
◆ test_instantiateObject_shouldReturnInstance()
TestScoringTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 44 of file TestScoringTest.php.
46 $this->assertInstanceOf(TestScoring::class, $this->testObj);
◆ testPreserveManualScores()
TestScoringTest::testPreserveManualScores |
( |
| ) |
|
Definition at line 49 of file TestScoringTest.php.
51 $this->testObj->setPreserveManualScores(
false);
52 $this->assertFalse($this->testObj->getPreserveManualScores());
54 $this->testObj->setPreserveManualScores(
true);
55 $this->assertTrue($this->testObj->getPreserveManualScores());
◆ testQuestionId()
TestScoringTest::testQuestionId |
( |
| ) |
|
Definition at line 58 of file TestScoringTest.php.
61 $this->testObj->setQuestionId($questionId);
62 $this->assertEquals($questionId, $this->testObj->getQuestionId());
◆ $testObj
The documentation for this class was generated from the following file: