ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestLearningObjectivesStatusGUITest Class Reference

Class ilTestLearningObjectivesStatusGUITest. More...

+ Inheritance diagram for ilTestLearningObjectivesStatusGUITest:
+ Collaboration diagram for ilTestLearningObjectivesStatusGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testCrsObjId ()
 
 testUsrId ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestLearningObjectivesStatusGUI $testObj
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestLearningObjectivesStatusGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestLearningObjectivesStatusGUITest.php.

29 : void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestLearningObjectivesStatusGUI(
34 $this->createMock(ilLanguage::class),
35 $this->createMock(ilCtrl::class),
36 $this->createMock(ILIAS\UI\Factory::class),
37 $this->createMock(ILIAS\UI\Renderer::class),
38 $this->createMock(ILIAS\Test\RequestDataCollector::class)
39 );
40 }
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

◆ test_instantiateObject_shouldReturnInstance()

ilTestLearningObjectivesStatusGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 42 of file ilTestLearningObjectivesStatusGUITest.php.

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

◆ testCrsObjId()

ilTestLearningObjectivesStatusGUITest::testCrsObjId ( )

Definition at line 47 of file ilTestLearningObjectivesStatusGUITest.php.

47 : void
48 {
49 $crsObjId = 1240;
50 $this->testObj->setCrsObjId($crsObjId);
51 $this->assertEquals($crsObjId, $this->testObj->getCrsObjId());
52 }

◆ testUsrId()

ilTestLearningObjectivesStatusGUITest::testUsrId ( )

Definition at line 54 of file ilTestLearningObjectivesStatusGUITest.php.

54 : void
55 {
56 $usrId = 1240;
57 $this->testObj->setUsrId($usrId);
58 $this->assertEquals($usrId, $this->testObj->getUsrId());
59 }

Field Documentation

◆ $testObj

ilTestLearningObjectivesStatusGUI ilTestLearningObjectivesStatusGUITest::$testObj
private

Definition at line 27 of file ilTestLearningObjectivesStatusGUITest.php.


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