diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-20 17:21:52 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-20 17:22:52 +0200 |
commit | 39e248d33079f4d66c0b814adc9da4eab865eeb5 (patch) | |
tree | 43fc67b8b24b1943d8c357907d7e1db779c81a28 /apps/user_ldap/tests/Jobs | |
parent | 94322971a5a052becb92d4f81a158fd1cf43c873 (diff) | |
download | nextcloud-server-39e248d33079f4d66c0b814adc9da4eab865eeb5.tar.gz nextcloud-server-39e248d33079f4d66c0b814adc9da4eab865eeb5.zip |
Fix LDAP unit tests
20) OCA\user_ldap\tests\Jobs\UpdateGroupsTest::testHandleKnownGroups
Trying to configure method "fetchAll" which cannot be configured because it does not exist, has not been specified, is final, or is static
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_ldap/tests/Jobs')
-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); |