aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorRoger Szabo <roger.szabo@web.de>2017-04-06 19:17:24 +0800
committerRoger Szabo <roger.szabo@web.de>2017-04-06 19:17:24 +0800
commit0ea8729d1d3749b8072e7cc11744422d345bb85d (patch)
treec57eb1c9a97bfd0ddbf1cd9d8bdf39b9e44bbe16 /apps/user_ldap/tests
parentf49ff74943f486e85c658a7daa56ee52e971e2e8 (diff)
downloadnextcloud-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.php14
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();