Class TestScoringTest.
More...
◆ setUp()
TestScoringTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 31 of file TestScoringTest.php.
36 $this->getTestObjMock(),
37 $this->createMock(ilObjUser::class),
38 $this->createMock(ilDBInterface::class),
39 $this->createMock(ilLanguage::class)
◆ test_instantiateObject_shouldReturnInstance()
TestScoringTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 43 of file TestScoringTest.php.
45 $this->assertInstanceOf(TestScoring::class, $this->testObj);
◆ testPreserveManualScores()
TestScoringTest::testPreserveManualScores |
( |
| ) |
|
Definition at line 48 of file TestScoringTest.php.
50 $this->testObj->setPreserveManualScores(
false);
51 $this->assertFalse($this->testObj->getPreserveManualScores());
53 $this->testObj->setPreserveManualScores(
true);
54 $this->assertTrue($this->testObj->getPreserveManualScores());
◆ testQuestionId()
TestScoringTest::testQuestionId |
( |
| ) |
|
Definition at line 57 of file TestScoringTest.php.
60 $this->testObj->setQuestionId($questionId);
61 $this->assertEquals($questionId, $this->testObj->getQuestionId());
◆ $testObj
The documentation for this class was generated from the following file: