diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-04-20 21:34:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 21:34:21 +0200 |
commit | ea0f022816eb7fd350399db50fc4ea8d2b2a4d54 (patch) | |
tree | 597bf978abed627cba0b2bd977558c3bf4a8ffe5 | |
parent | 6c0bb2c338370fc7818f2c656b7438fe09fd8b78 (diff) | |
parent | 39e248d33079f4d66c0b814adc9da4eab865eeb5 (diff) | |
download | nextcloud-server-ea0f022816eb7fd350399db50fc4ea8d2b2a4d54.tar.gz nextcloud-server-ea0f022816eb7fd350399db50fc4ea8d2b2a4d54.zip |
Merge pull request #26661 from nextcloud/bugfix/noid/fix-ldap-unit-test
Fix LDAP unit tests
-rw-r--r-- | apps/user_ldap/tests/Jobs/UpdateGroupsTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/tests/Jobs/UpdateGroupsTest.php b/apps/user_ldap/tests/Jobs/UpdateGroupsTest.php index cb947c81a6f..63f60184a53 100644 --- a/apps/user_ldap/tests/Jobs/UpdateGroupsTest.php +++ b/apps/user_ldap/tests/Jobs/UpdateGroupsTest.php @@ -26,9 +26,9 @@ declare(strict_types=1); namespace OCA\user_ldap\tests\Jobs; -use Doctrine\DBAL\Driver\Statement; use OCA\User_LDAP\Group_Proxy; use OCA\User_LDAP\Jobs\UpdateGroups; +use OCP\DB\IResult; use OCP\DB\QueryBuilder\IExpressionBuilder; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\EventDispatcher\IEventDispatcher; @@ -124,7 +124,7 @@ class UpdateGroupsTest extends TestCase { ->method('expr') ->willReturn($this->createMock(IExpressionBuilder::class)); - $stmt = $this->createMock(Statement::class); + $stmt = $this->createMock(IResult::class); $stmt->expects($this->once()) ->method('fetchAll') ->willReturn($knownGroupsDB); |