ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilObjTestTest Class Reference

Class ilObjTestTest. More...

+ Inheritance diagram for ilObjTestTest:
+ Collaboration diagram for ilObjTestTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTmpCopyWizardCopyId ()
 
 testTestId ()
 
- 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

ilObjTest $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

Class ilObjTestTest.

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

Definition at line 26 of file ilObjTestTest.php.

Member Function Documentation

◆ setUp()

ilObjTestTest::setUp ( )
protected

Definition at line 30 of file ilObjTestTest.php.

References addGlobal_filesystem(), addGlobal_ilAppEventHandler(), addGlobal_ilComponentFactory(), addGlobal_ilErr(), addGlobal_ilLog(), and addGlobal_ilSetting().

30  : void
31  {
32  parent::setUp();
33 
34  $this->addGlobal_ilErr();
35  $this->addGlobal_ilLog();
36  $this->addGlobal_ilSetting();
38  $this->addGlobal_filesystem();
40 
41  $this->testObj = new ilObjTest();
42  }
addGlobal_ilAppEventHandler()
addGlobal_ilComponentFactory()
addGlobal_filesystem()
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilObjTestTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 44 of file ilObjTestTest.php.

44  : void
45  {
46  $this->assertInstanceOf(ilObjTest::class, $this->testObj);
47  }

◆ testTestId()

ilObjTestTest::testTestId ( )

Definition at line 56 of file ilObjTestTest.php.

56  : void
57  {
58  $a_id = 15;
59  $this->testObj->setTestId($a_id);
60  $this->assertEquals($a_id, $this->testObj->getTestId());
61  }

◆ testTmpCopyWizardCopyId()

ilObjTestTest::testTmpCopyWizardCopyId ( )

Definition at line 49 of file ilObjTestTest.php.

49  : void
50  {
51  $tmpCopyWizardCopyId = 12;
52  $this->testObj->setTmpCopyWizardCopyId($tmpCopyWizardCopyId);
53  $this->assertEquals($tmpCopyWizardCopyId, $this->testObj->getTmpCopyWizardCopyId());
54  }

Field Documentation

◆ $testObj

ilObjTest ilObjTestTest::$testObj
private

Definition at line 28 of file ilObjTestTest.php.


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