ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestProcessLockerFactoryTest Class Reference

Class ilTestProcessLockerFactoryTest. More...

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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testActiveId ()
 

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=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

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: