19 declare(strict_types=1);
33 protected function setUp(): void
42 $this->assertInstanceOf(ilDidacticTemplateIncludeFilterPattern::class, $include_pattern);
45 $this->assertInstanceOf(ilDidacticTemplateExcludeFilterPattern::class, $exclude_pattern);
52 $include_pattern->setPattern(
'^il_crs_admin_[0-9]+$');
53 $this->assertTrue($include_pattern->valid(
'il_crs_admin_123'));
57 $exclude_pattern->setPattern(
'il_crs_admin_[0-9]+');
58 $this->assertTrue($exclude_pattern->valid(
'il_grp_admin'));
79 $logger = $this->getMockBuilder(ilLogger::class)
80 ->disableOriginalConstructor()
83 $logger_factory = $this->getMockBuilder(ilLoggerFactory::class)
84 ->disableOriginalConstructor()
85 ->onlyMethods([
'getComponentLogger'])
87 $logger_factory->method(
'getComponentLogger')->willReturn($logger);
Customizing of pimple-DIC for ILIAS.
setGlobalVariable(string $name, $value)
Implementation of an include filter pattern for didactic template actions.
Unit tests for class ilDidacticTemplate.
const PATTERN_SUBTYPE_REGEX
initPatternDependencies()
Implementation of an include filter pattern for didactic template actions.