diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-03-28 16:13:19 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-04-04 11:45:22 +0200 |
commit | 0b332ceac24ee93e82e25ee95841ae6fae3b889b (patch) | |
tree | 5c33219f115c05a17cec25e2122ff1cae352e86f /apps/user_ldap/tests | |
parent | 292b903bc283c5a7929e092d8262331606461ef7 (diff) | |
download | nextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.tar.gz nextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.zip |
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r-- | apps/user_ldap/tests/Group_LDAPTest.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/tests/User/UserTest.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/tests/Group_LDAPTest.php b/apps/user_ldap/tests/Group_LDAPTest.php index 5c994b8e3a5..1658001b31c 100644 --- a/apps/user_ldap/tests/Group_LDAPTest.php +++ b/apps/user_ldap/tests/Group_LDAPTest.php @@ -1356,7 +1356,7 @@ class Group_LDAPTest extends TestCase { * @param string[] $expectedMembers * @dataProvider groupMemberProvider */ - public function testGroupMembers(array $expectedResult, array $groupsInfo = null) { + public function testGroupMembers(array $expectedResult, ?array $groupsInfo = null) { $this->access->expects($this->any()) ->method('readAttribute') ->willReturnCallback(function ($group) use ($groupsInfo) { diff --git a/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php b/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php index 623d08d565d..a706aae9895 100644 --- a/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php +++ b/apps/user_ldap/tests/Integration/Lib/User/IntegrationTestUserCleanUp.php @@ -92,7 +92,7 @@ class IntegrationTestUserCleanUp extends AbstractIntegrationTest { } $user->delete(); - return null === \OC::$server->getUserManager()->get($username); + return \OC::$server->getUserManager()->get($username) === null; } } diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php index 23ce407dfd7..d6530faa9b6 100644 --- a/apps/user_ldap/tests/User/UserTest.php +++ b/apps/user_ldap/tests/User/UserTest.php @@ -837,7 +837,7 @@ class UserTest extends \Test\TestCase { /** * @dataProvider extStorageHomeDataProvider */ - public function testUpdateExtStorageHome(string $expected, string $valueFromLDAP = null, bool $isSet = true) { + public function testUpdateExtStorageHome(string $expected, ?string $valueFromLDAP = null, bool $isSet = true) { if ($valueFromLDAP === null) { $this->connection->expects($this->once()) ->method('__get') |