diff options
Diffstat (limited to 'apps/files_trashbin/tests/Sabre/TrashbinPluginTest.php')
-rw-r--r-- | apps/files_trashbin/tests/Sabre/TrashbinPluginTest.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/files_trashbin/tests/Sabre/TrashbinPluginTest.php b/apps/files_trashbin/tests/Sabre/TrashbinPluginTest.php index 60cc69ba09d..6c566afc738 100644 --- a/apps/files_trashbin/tests/Sabre/TrashbinPluginTest.php +++ b/apps/files_trashbin/tests/Sabre/TrashbinPluginTest.php @@ -1,5 +1,6 @@ <?php +declare(strict_types=1); /** * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later @@ -33,19 +34,23 @@ class TrashbinPluginTest extends TestCase { */ public function testQuota(int $quota, int $fileSize, bool $expectedResult): void { $fileInfo = $this->createMock(ITrashItem::class); - $fileInfo->method('getSize')->willReturn($fileSize); + $fileInfo->method('getSize') + ->willReturn($fileSize); $trashNode = $this->createMock(ITrash::class); - $trashNode->method('getFileInfo')->willReturn($fileInfo); + $trashNode->method('getFileInfo') + ->willReturn($fileInfo); $restoreNode = $this->createMock(RestoreFolder::class); - $this->server->tree->method('getNodeForPath')->willReturn($trashNode, $restoreNode); + $this->server->tree->method('getNodeForPath') + ->willReturn($trashNode, $restoreNode); $previewManager = $this->createMock(IPreview::class); $view = $this->createMock(View::class); - $view->method('free_space')->willReturn($quota); + $view->method('free_space') + ->willReturn($quota); $plugin = new TrashbinPlugin($previewManager, $view); $plugin->initialize($this->server); @@ -55,7 +60,7 @@ class TrashbinPluginTest extends TestCase { $this->assertEquals($expectedResult, $plugin->beforeMove($sourcePath, $destinationPath)); } - public function quotaProvider(): array { + public static function quotaProvider(): array { return [ [ 1024, 512, true ], [ 512, 513, false ], |