3 declare(strict_types=1);
26 protected function setUp(): void
29 $this->dic_backup = is_object($DIC) ? clone
$DIC :
$DIC;
32 $DIC[
'ilDB'] = $this->createMock(ilDBInterface::class);
44 $rule->setName(
'attribute_1');
45 $rule->setValue(
'value_1');
47 $this->assertTrue($rule->matches([
'attribute_1' =>
'value_1']));
48 $this->assertFalse($rule->matches([
'attribute_2' =>
'value_2']));
54 $rule->setName(
'attribute_1');
55 $rule->setValue(
'value_*');
57 $this->assertTrue($rule->matches([
'attribute_1' =>
'value_1']));
58 $this->assertTrue($rule->matches([
'attribute_1' =>
'value_2']));
59 $this->assertFalse($rule->matches([
'attribute_2' =>
'value_2']));
Customizing of pimple-DIC for ILIAS.
testWildcardRuleAssignement()
ILIAS DI Container $dic_backup
Shibboleth role assignment rule.