ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilTestProcessLockerFactoryTest Class Reference

Class ilTestProcessLockerFactoryTest. More...

+ Inheritance diagram for ilTestProcessLockerFactoryTest:
+ Collaboration diagram for ilTestProcessLockerFactoryTest:

Public Member Functions

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

ilTestProcessLockerFactory $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()

ilTestProcessLockerFactoryTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestProcessLockerFactoryTest.php.

29 : void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestProcessLockerFactory(
34 $this->getMockBuilder(ilSetting::class)->disableOriginalConstructor()->getMock(),
35 $this->createMock(ilDBInterface::class),
36 $this->createMock(ilLogger::class)
37 );
38 }

◆ test_instantiateObject_shouldReturnInstance()

ilTestProcessLockerFactoryTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 40 of file ilTestProcessLockerFactoryTest.php.

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

◆ testActiveId()

ilTestProcessLockerFactoryTest::testActiveId ( )

Definition at line 45 of file ilTestProcessLockerFactoryTest.php.

45 : void
46 {
47 $contextId = 212;
48 $lockerFactory = $this->testObj->withContextId($contextId);
49 $this->assertEquals($contextId, $lockerFactory->getContextId());
50 }

Field Documentation

◆ $testObj

ilTestProcessLockerFactory ilTestProcessLockerFactoryTest::$testObj
private

Definition at line 27 of file ilTestProcessLockerFactoryTest.php.


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