3 declare(strict_types=1);
17 protected function setUp(): void
22 if (!defined(
"ILIAS_LOG_ENABLED")) {
23 define(
"ILIAS_LOG_ENABLED",
false);
28 $db_mock = $this->createMock(ilDBInterface::class);
29 $db_mock->method(
"fetchAssoc")
31 $this->onConsecutiveCalls(
33 "component" =>
"Services/EventHandling",
34 "id" =>
"MyTestComponent" 47 $this->createMock(ilSetting::class)
49 $component_repository = $this->createMock(ilComponentRepository::class);
51 "component.repository",
54 $component_factory = $this->createMock(ilComponentFactory::class);
93 $this->expectException(ilEventHandlingTestException::class);
Test clipboard repository.
Customizing of pimple-DIC for ILIAS.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
setGlobalVariable(string $name, $value)