30 protected function setUp(): void
42 $this->assertInstanceOf(
43 ilLPCollectionOfObjectives::class,
54 $DIC[$name] =
static function (
Container $c) use ($value) {
65 $this->createMock(ilDBInterface::class)
67 $logger = $this->getMockBuilder(ilLogger::class)
68 ->disableOriginalConstructor()
71 $logger_factory = $this->getMockBuilder(ilLoggerFactory::class)
72 ->disableOriginalConstructor()
73 ->onlyMethods([
'getComponentLogger'])
75 $logger_factory->method(
'getComponentLogger')->willReturn($logger);
setGlobalVariable(string $name, $value)
Customizing of pimple-DIC for ILIAS.
static getInstanceByMode(int $a_obj_id, int $a_mode)