File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33/**
44 * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
5- * SPDX-License-Identifier: AGPL-3.0-only
5+ * SPDX-License-Identifier: AGPL-3.0-or-later
66 */
77
88declare (strict_types=1 );
@@ -120,7 +120,8 @@ public function testGetFileFetchesAvatarFromCache(): void {
120120 $ expectedFile = $ this ->createMock (ISimpleFile::class);
121121 $ expectedFile ->expects ($ this ->once ())->method ('getContent ' )->willReturn ($ fileContents );
122122 $ expectedFile ->expects ($ this ->once ())->method ('getMTime ' )->willReturn (time () + (60 * 60 * 24 ));
123- $ this ->folder ->expects ($ this ->once ())->method ('getFile ' )->with ('avatar.64.png ' )->willReturn ($ expectedFile );
123+ $ expectedFile ->expects ($ this ->once ())->method ('getName ' )->willReturn ('avatar.64.png ' );
124+ $ this ->folder ->expects ($ this ->once ())->method ('getDirectoryListing ' )->willReturn ([$ expectedFile ]);
124125
125126 $ this ->clientService ->expects ($ this ->never ())->method ('newClient ' );
126127
You can’t perform that action at this time.
0 commit comments