diff options
author | Roger Szabo <roger.szabo@web.de> | 2017-04-06 19:17:24 +0800 |
---|---|---|
committer | Roger Szabo <roger.szabo@web.de> | 2017-04-06 19:17:24 +0800 |
commit | 0ea8729d1d3749b8072e7cc11744422d345bb85d (patch) | |
tree | c57eb1c9a97bfd0ddbf1cd9d8bdf39b9e44bbe16 /apps/user_ldap/tests | |
parent | f49ff74943f486e85c658a7daa56ee52e971e2e8 (diff) | |
download | nextcloud-server-0ea8729d1d3749b8072e7cc11744422d345bb85d.tar.gz nextcloud-server-0ea8729d1d3749b8072e7cc11744422d345bb85d.zip |
lower case for attributes
Signed-off-by: Roger Szabo <roger.szabo@web.de>
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r-- | apps/user_ldap/tests/User/UserTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php index abc65b27bca..cf42aad057f 100644 --- a/apps/user_ldap/tests/User/UserTest.php +++ b/apps/user_ldap/tests/User/UserTest.php @@ -1265,13 +1265,13 @@ class UserTest extends \Test\TestCase { $access->expects($this->any()) ->method('readAttribute') ->will($this->returnCallback(function($dn, $attr) { - if($attr === 'pwdChangedTime') { + if($attr === 'pwdchangedtime') { return array((new \DateTime())->sub(new \DateInterval('P28D'))->format('Ymdhis').'Z'); } - if($dn === 'cn=default,ou=policies,dc=foo,dc=bar' && $attr === 'pwdMaxAge') { + if($dn === 'cn=default,ou=policies,dc=foo,dc=bar' && $attr === 'pwdmaxage') { return array('2592000'); } - if($dn === 'cn=default,ou=policies,dc=foo,dc=bar' && $attr === 'pwdExpireWarning') { + if($dn === 'cn=default,ou=policies,dc=foo,dc=bar' && $attr === 'pwdexpirewarning') { return array('2591999'); } return array(); @@ -1331,16 +1331,16 @@ class UserTest extends \Test\TestCase { $access->expects($this->any()) ->method('readAttribute') ->will($this->returnCallback(function($dn, $attr) { - if($attr === 'pwdPolicySubentry') { + if($attr === 'pwdpolicysubentry') { return array('cn=custom,ou=policies,dc=foo,dc=bar'); } - if($attr === 'pwdChangedTime') { + if($attr === 'pwdchangedtime') { return array((new \DateTime())->sub(new \DateInterval('P28D'))->format('Ymdhis').'Z'); } - if($dn === 'cn=custom,ou=policies,dc=foo,dc=bar' && $attr === 'pwdMaxAge') { + if($dn === 'cn=custom,ou=policies,dc=foo,dc=bar' && $attr === 'pwdmaxage') { return array('2592000'); } - if($dn === 'cn=custom,ou=policies,dc=foo,dc=bar' && $attr === 'pwdExpireWarning') { + if($dn === 'cn=custom,ou=policies,dc=foo,dc=bar' && $attr === 'pwdexpirewarning') { return array('2591999'); } return array(); |