diff options
author | Louis Chemineau <louis@chmn.me> | 2024-09-20 11:26:22 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-09-23 18:06:38 +0200 |
commit | 9a34a6c4c4f556ccc6f1b6cb6d0cf8a651840fb0 (patch) | |
tree | 0ad6e95dbc751d682705e1c1c58d66073a965a23 /apps | |
parent | c15e2411db080fcb57a4200953a7c08f5ecea8d7 (diff) | |
download | nextcloud-server-9a34a6c4c4f556ccc6f1b6cb6d0cf8a651840fb0.tar.gz nextcloud-server-9a34a6c4c4f556ccc6f1b6cb6d0cf8a651840fb0.zip |
fix(users): Don't crash if disabled user is missing in the databasebackport/48207/stable30
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/tests/LDAPProviderTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/LDAPProviderTest.php b/apps/user_ldap/tests/LDAPProviderTest.php index 6e6c62157b3..b4d189033d0 100644 --- a/apps/user_ldap/tests/LDAPProviderTest.php +++ b/apps/user_ldap/tests/LDAPProviderTest.php @@ -16,6 +16,7 @@ use OCP\EventDispatcher\IEventDispatcher; use OCP\ICacheFactory; use OCP\IConfig; use OCP\IServerContainer; +use Psr\Log\LoggerInterface; /** * Class LDAPProviderTest @@ -54,6 +55,7 @@ class LDAPProviderTest extends \Test\TestCase { $this->createMock(IConfig::class), $this->createMock(ICacheFactory::class), $this->createMock(IEventDispatcher::class), + $this->createMock(LoggerInterface::class), ]) ->getMock(); $userManager->expects($this->any()) |