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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTestServiceTest:
+ Collaboration diagram for ilTestServiceTest:

Public Member Functions

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

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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestServiceTest

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

Definition at line 23 of file ilTestServiceTest.php.

Member Function Documentation

◆ setUp()

ilTestServiceTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 27 of file ilTestServiceTest.php.

27 : void
28 {
29 parent::setUp();
30
31 $this->testObj = new ilTestService(
32 $this->getTestObjMock(),
33 $this->createMock(ilDBInterface::class),
34 $this->createMock(\ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::class)
35 );
36 }
Service class for tests.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References getTestObjMock().

+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilTestServiceTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 38 of file ilTestServiceTest.php.

38 : void
39 {
40 $this->assertInstanceOf(ilTestService::class, $this->testObj);
41 }

Field Documentation

◆ $testObj

ilTestService ilTestServiceTest::$testObj
private

Definition at line 25 of file ilTestServiceTest.php.


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