mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
refactor(result): Adapt tests to new result methods
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
This commit is contained in:
parent
90f4b98424
commit
59e652907b
3 changed files with 4 additions and 5 deletions
|
|
@ -422,7 +422,7 @@ EOF;
|
|||
|
||||
$stmt->expects($this->once())
|
||||
->method('fetchAssociative')
|
||||
->willReturn($return);
|
||||
->willReturn($return ?? false);
|
||||
$stmt->expects($this->once())
|
||||
->method('closeCursor');
|
||||
|
||||
|
|
|
|||
|
|
@ -58,8 +58,7 @@ class RefreshWebcalJobRegistrarTest extends TestCase {
|
|||
->willReturn($statement);
|
||||
|
||||
$statement->expects($this->exactly(4))
|
||||
->method('fetch')
|
||||
->with(\PDO::FETCH_ASSOC)
|
||||
->method('fetchAssociative')
|
||||
->willReturnOnConsecutiveCalls(
|
||||
[
|
||||
'principaluri' => 'foo1',
|
||||
|
|
@ -73,7 +72,7 @@ class RefreshWebcalJobRegistrarTest extends TestCase {
|
|||
'principaluri' => 'foo3',
|
||||
'uri' => 'bar3',
|
||||
],
|
||||
null
|
||||
false,
|
||||
);
|
||||
|
||||
$this->jobList->expects($this->exactly(3))
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class RemoveDeletedUsersCalendarSubscriptionsTest extends TestCase {
|
|||
->willReturn(count($subscriptions));
|
||||
|
||||
$result
|
||||
->method('fetch')
|
||||
->method('fetchAssociative')
|
||||
->willReturnOnConsecutiveCalls(...$subscriptions);
|
||||
|
||||
$qb->method('delete')
|
||||
|
|
|
|||
Loading…
Reference in a new issue