Merge pull request #26661 from nextcloud/bugfix/noid/fix-ldap-unit-test

Fix LDAP unit tests
This commit is contained in:
Morris Jobke 2021-04-20 21:34:21 +02:00 committed by GitHub
commit ea0f022816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);