19 declare(strict_types=1);
28 protected function setUp(): void
31 $this->dic_backup = is_object($DIC) ? clone
$DIC :
$DIC;
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()
Shibboleth role assignment rule.