◆ setUp()
ilServicesAuthShibbolethTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 28 of file ilServicesAuthShibbolethTest.php.
References $DIC.
31 $this->dic_backup = is_object($DIC) ? clone
$DIC :
$DIC;
34 $DIC[
'ilDB'] = $this->createMock(ilDBInterface::class);
Customizing of pimple-DIC for ILIAS.
◆ tearDown()
ilServicesAuthShibbolethTest::tearDown |
( |
| ) |
|
|
protected |
◆ testRuleAssignement()
ilServicesAuthShibbolethTest::testRuleAssignement |
( |
| ) |
|
Definition at line 43 of file ilServicesAuthShibbolethTest.php.
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']));
Shibboleth role assignment rule.
◆ testWildcardRuleAssignement()
ilServicesAuthShibbolethTest::testWildcardRuleAssignement |
( |
| ) |
|
Definition at line 53 of file ilServicesAuthShibbolethTest.php.
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']));
Shibboleth role assignment rule.
◆ $dic_backup
Container ilServicesAuthShibbolethTest::$dic_backup |
|
private |
The documentation for this class was generated from the following file: