fix unit tests
This commit is contained in:
parent
cd19b648c6
commit
e370b601db
|
@ -68,7 +68,10 @@ class Test_Group_Ldap extends \Test\TestCase {
|
||||||
private function enableGroups($access) {
|
private function enableGroups($access) {
|
||||||
$access->connection->expects($this->any())
|
$access->connection->expects($this->any())
|
||||||
->method('__get')
|
->method('__get')
|
||||||
->will($this->returnCallback(function() {
|
->will($this->returnCallback(function($name) {
|
||||||
|
if($name === 'ldapDynamicGroupMemberURL') {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -430,6 +433,8 @@ class Test_Group_Ldap extends \Test\TestCase {
|
||||||
->will($this->returnCallback(function($name) {
|
->will($this->returnCallback(function($name) {
|
||||||
if($name === 'useMemberOfToDetectMembership') {
|
if($name === 'useMemberOfToDetectMembership') {
|
||||||
return 0;
|
return 0;
|
||||||
|
} else if($name === 'ldapDynamicGroupMemberURL') {
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue