Skip to content

Commit bca51cc

Browse files
committed
refactor: Port External\Manager to the query builder
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
1 parent f16958f commit bca51cc

File tree

7 files changed

+129
-237
lines changed

7 files changed

+129
-237
lines changed

apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testRun(): void {
7272
->with($function)
7373
->willReturn($queryBuilder);
7474
$queryBuilder->expects($this->once())
75-
->method('execute')
75+
->method('executeStatement')
7676
->with()
7777
->willReturn($stmt);
7878

apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testRun(): void {
5454
->with('calendarsubscriptions')
5555
->willReturn($queryBuilder);
5656
$queryBuilder->expects($this->once())
57-
->method('execute')
57+
->method('executeQuery')
5858
->willReturn($statement);
5959

6060
$statement->expects($this->exactly(4))

apps/dav/tests/unit/Migration/RemoveDeletedUsersCalendarSubscriptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testRun(array $subscriptions, array $userExists, int $deletions)
7272

7373
$result = $this->createMock(IResult::class);
7474

75-
$qb->method('execute')
75+
$qb->method('executeQuery')
7676
->willReturn($result);
7777

7878
$result->expects($this->once())

0 commit comments

Comments
 (0)