summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/User/UserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/tests/User/UserTest.php')
-rw-r--r--apps/user_ldap/tests/User/UserTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php
index 4e8dacaeda1..7453b31e338 100644
--- a/apps/user_ldap/tests/User/UserTest.php
+++ b/apps/user_ldap/tests/User/UserTest.php
@@ -606,7 +606,7 @@ class UserTest extends \Test\TestCase {
public function XtestUpdateAvatarThumbnailPhotoProvided() {
$this->access->expects($this->any())
->method('readAttribute')
- ->willReturnCallback(function($dn, $attr) {
+ ->willReturnCallback(function ($dn, $attr) {
if($dn === $this->dn
&& $attr === 'jpegphoto')
{
@@ -671,7 +671,7 @@ class UserTest extends \Test\TestCase {
public function testUpdateAvatarCorruptPhotoProvided() {
$this->access->expects($this->any())
->method('readAttribute')
- ->willReturnCallback(function($dn, $attr) {
+ ->willReturnCallback(function ($dn, $attr) {
if($dn === $this->dn
&& $attr === 'jpegphoto')
{
@@ -724,7 +724,7 @@ class UserTest extends \Test\TestCase {
public function XtestUpdateAvatarUnsupportedThumbnailPhotoProvided() {
$this->access->expects($this->any())
->method('readAttribute')
- ->willReturnCallback(function($dn, $attr) {
+ ->willReturnCallback(function ($dn, $attr) {
if($dn === $this->dn
&& $attr === 'jpegphoto')
{
@@ -789,7 +789,7 @@ class UserTest extends \Test\TestCase {
public function testUpdateAvatarNotProvided() {
$this->access->expects($this->any())
->method('readAttribute')
- ->willReturnCallback(function($dn, $attr) {
+ ->willReturnCallback(function ($dn, $attr) {
if($dn === $this->dn
&& $attr === 'jpegPhoto')
{
@@ -1038,7 +1038,7 @@ class UserTest extends \Test\TestCase {
]);
$this->connection->expects($this->any())
->method('__get')
- ->willReturnCallback(function($name) {
+ ->willReturnCallback(function ($name) {
if($name === 'homeFolderNamingRule') {
return 'attr:homeDirectory';
}
@@ -1193,7 +1193,7 @@ class UserTest extends \Test\TestCase {
public function testHandlePasswordExpiryWarningDefaultPolicy() {
$this->connection->expects($this->any())
->method('__get')
- ->willReturnCallback(function($name) {
+ ->willReturnCallback(function ($name) {
if($name === 'ldapDefaultPPolicyDN') {
return 'cn=default,ou=policies,dc=foo,dc=bar';
}
@@ -1205,7 +1205,7 @@ class UserTest extends \Test\TestCase {
$this->access->expects($this->any())
->method('search')
- ->willReturnCallback(function($filter, $base) {
+ ->willReturnCallback(function ($filter, $base) {
if($base === [$this->dn]) {
return [
[
@@ -1256,7 +1256,7 @@ class UserTest extends \Test\TestCase {
public function testHandlePasswordExpiryWarningCustomPolicy() {
$this->connection->expects($this->any())
->method('__get')
- ->willReturnCallback(function($name) {
+ ->willReturnCallback(function ($name) {
if($name === 'ldapDefaultPPolicyDN') {
return 'cn=default,ou=policies,dc=foo,dc=bar';
}
@@ -1268,7 +1268,7 @@ class UserTest extends \Test\TestCase {
$this->access->expects($this->any())
->method('search')
- ->willReturnCallback(function($filter, $base) {
+ ->willReturnCallback(function ($filter, $base) {
if($base === [$this->dn]) {
return [
[