Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-04-20 22:34:21 +0300
committerGitHub <noreply@github.com>2021-04-20 22:34:21 +0300
commitea0f022816eb7fd350399db50fc4ea8d2b2a4d54 (patch)
tree597bf978abed627cba0b2bd977558c3bf4a8ffe5 /apps
parent6c0bb2c338370fc7818f2c656b7438fe09fd8b78 (diff)
parent39e248d33079f4d66c0b814adc9da4eab865eeb5 (diff)
Merge pull request #26661 from nextcloud/bugfix/noid/fix-ldap-unit-test
Fix LDAP unit tests
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/tests/Jobs/UpdateGroupsTest.php4
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);