ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestProcessLockerFactoryTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestProcessLockerFactory(
34  $lng_mock = $this->getMockBuilder(ilSetting::class)->disableOriginalConstructor()->getMock(),
35  $this->createMock(ilDBInterface::class)
36  );
37  }
38 
40  {
41  $this->assertInstanceOf(ilTestProcessLockerFactory::class, $this->testObj);
42  }
43 
44  public function testActiveId(): void
45  {
46  $lockerFactory = $this->testObj->withContextId(212);
47  $this->assertEquals(212, $lockerFactory->getContextId());
48  }
49 }
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...