adjust tests
This commit is contained in:
parent
2fddb1367a
commit
d127b3f0d2
|
@ -145,7 +145,7 @@ class Test_Group_Ldap extends \Test\TestCase {
|
||||||
|
|
||||||
$access->expects($this->once())
|
$access->expects($this->once())
|
||||||
->method('searchGroups')
|
->method('searchGroups')
|
||||||
->will($this->returnValue(array('cn=foo,dc=barfoo,dc=bar')));
|
->will($this->returnValue([['dn' => ['cn=foo,dc=barfoo,dc=bar']]]));
|
||||||
|
|
||||||
$access->expects($this->once())
|
$access->expects($this->once())
|
||||||
->method('dn2groupname')
|
->method('dn2groupname')
|
||||||
|
@ -221,7 +221,7 @@ class Test_Group_Ldap extends \Test\TestCase {
|
||||||
|
|
||||||
$access->expects($this->once())
|
$access->expects($this->once())
|
||||||
->method('searchGroups')
|
->method('searchGroups')
|
||||||
->will($this->returnValue(array('cn=foo,dc=barfoo,dc=bar')));
|
->will($this->returnValue([['dn' => ['cn=foo,dc=barfoo,dc=bar']]]));
|
||||||
|
|
||||||
$access->expects($this->once())
|
$access->expects($this->once())
|
||||||
->method('dn2groupname')
|
->method('dn2groupname')
|
||||||
|
|
|
@ -124,7 +124,7 @@ class Test_User_Ldap_Direct extends \Test\TestCase {
|
||||||
->method('fetchListOfUsers')
|
->method('fetchListOfUsers')
|
||||||
->will($this->returnCallback(function($filter) {
|
->will($this->returnCallback(function($filter) {
|
||||||
if($filter === 'roland') {
|
if($filter === 'roland') {
|
||||||
return array(array('dn' => 'dnOfRoland,dc=test'));
|
return array(array('dn' => ['dnOfRoland,dc=test']));
|
||||||
}
|
}
|
||||||
return array();
|
return array();
|
||||||
}));
|
}));
|
||||||
|
@ -133,7 +133,7 @@ class Test_User_Ldap_Direct extends \Test\TestCase {
|
||||||
->method('fetchUsersByLoginName')
|
->method('fetchUsersByLoginName')
|
||||||
->will($this->returnCallback(function($uid) {
|
->will($this->returnCallback(function($uid) {
|
||||||
if($uid === 'roland') {
|
if($uid === 'roland') {
|
||||||
return array(array('dn' => 'dnOfRoland,dc=test'));
|
return array(array('dn' => ['dnOfRoland,dc=test']));
|
||||||
}
|
}
|
||||||
return array();
|
return array();
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue