ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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

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  );
37  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestProcessLockerFactoryTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 39 of file ilTestProcessLockerFactoryTest.php.

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

◆ testActiveId()

ilTestProcessLockerFactoryTest::testActiveId ( )

Definition at line 44 of file ilTestProcessLockerFactoryTest.php.

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

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: