19declare(strict_types=1);
21use PHPUnit\Framework\TestCase;
35 protected function setUp(): void
72 $this->
setGlobalVariable(
'ilObjDataCache', $this->createMock(ilObjectDataCache::class));
77 $logger = $this->getMockBuilder(ilLogger::class)
78 ->disableOriginalConstructor()
81 $logger_factory = $this->getMockBuilder(ilLoggerFactory::class)
82 ->disableOriginalConstructor()
83 ->onlyMethods([
'getComponentLogger'])
85 $logger_factory->method(
'getComponentLogger')->willReturn($logger);
88 if (!defined(
'ILIAS_LOG_ENABLED')) {
89 define(
'ILIAS_LOG_ENABLED',
true);
92 if (!defined(
'ILIAS_LOG_DIR')) {
93 define(
'ILIAS_LOG_DIR',
'/var/log');
96 if (!defined(
'ILIAS_LOG_FILE')) {
97 define(
'ILIAS_LOG_FILE',
'/var/log/ilias.log');
Customizing of pimple-DIC for ILIAS.
Unit tests for tree table.
setGlobalVariable(string $name, $value)
Class ilRbacAdmin Core functions for role based access control.
class ilRbacReview Contains Review functions of core Rbac.
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.