Skip to content

Commit 754765e

Browse files
committed
fixup! chore(tests): Adapt tests to IUser strict typing
1 parent 88e93b5 commit 754765e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/lib/TaskProcessing/TaskProcessingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ public function testProviderShouldBeRegisteredAndTaskWithFilesFailValidation():
912912
new ServiceRegistration('test', AsyncProvider::class)
913913
]);
914914
$user = $this->createMock(IUser::class);
915-
$user->expects($this->any())->method('getUID')->willReturn(null);
915+
$user->expects($this->any())->method('getUID')->willReturn('uid');
916916
$mount = $this->createMock(ICachedMountInfo::class);
917917
$mount->expects($this->any())->method('getUser')->willReturn($user);
918918
$this->userMountCache->expects($this->any())->method('getMountsForFileId')->willReturn([$mount]);

0 commit comments

Comments
 (0)