19declare(strict_types=1);
21use PHPUnit\Framework\TestCase;
28 protected function setUp(): void
34 $DIC[
'ilDB'] = $this->createMock(ilDBInterface::class);
46 $rule->setName(
'attribute_1');
47 $rule->setValue(
'value_1');
49 $this->assertTrue($rule->matches([
'attribute_1' =>
'value_1']));
50 $this->assertFalse($rule->matches([
'attribute_2' =>
'value_2']));
56 $rule->setName(
'attribute_1');
57 $rule->setValue(
'value_*');
59 $this->assertTrue($rule->matches([
'attribute_1' =>
'value_1']));
60 $this->assertTrue($rule->matches([
'attribute_1' =>
'value_2']));
61 $this->assertFalse($rule->matches([
'attribute_2' =>
'value_2']));
Customizing of pimple-DIC for ILIAS.
testWildcardRuleAssignement()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...