ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestScoringTest Class Reference

Class ilTestScoringTest. More...

+ Inheritance diagram for ilTestScoringTest:
+ Collaboration diagram for ilTestScoringTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testPreserveManualScores ()
 
 testQuestionId ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilTestScoring $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Class ilTestScoringTest.

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilTestScoringTest.php.

Member Function Documentation

◆ setUp()

ilTestScoringTest::setUp ( )
protected

Definition at line 29 of file ilTestScoringTest.php.

References $DIC, and ilTestBaseTestCase\addGlobal_ilUser().

29  : void
30  {
31  global $DIC;
32  parent::setUp();
33  $this->addGlobal_ilUser();
34 
35  $this->testObj = new ilTestScoring(
36  $this->createMock(ilObjTest::class),
37  $DIC['ilDB']
38  );
39  }
global $DIC
Definition: feed.php:28
Class ilTestScoring.
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestScoringTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 41 of file ilTestScoringTest.php.

41  : void
42  {
43  $this->assertInstanceOf(ilTestScoring::class, $this->testObj);
44  }

◆ testPreserveManualScores()

ilTestScoringTest::testPreserveManualScores ( )

Definition at line 46 of file ilTestScoringTest.php.

46  : void
47  {
48  $this->testObj->setPreserveManualScores(false);
49  $this->assertFalse($this->testObj->getPreserveManualScores());
50 
51  $this->testObj->setPreserveManualScores(true);
52  $this->assertTrue($this->testObj->getPreserveManualScores());
53  }

◆ testQuestionId()

ilTestScoringTest::testQuestionId ( )

Definition at line 55 of file ilTestScoringTest.php.

55  : void
56  {
57  $this->testObj->setQuestionId(20);
58  $this->assertEquals(20, $this->testObj->getQuestionId());
59  }

Field Documentation

◆ $testObj

ilTestScoring ilTestScoringTest::$testObj
private

Definition at line 27 of file ilTestScoringTest.php.


The documentation for this class was generated from the following file: