From 5b0a141cffbd673889d2f645b671ce12cbf8560a Mon Sep 17 00:00:00 2001 From: zak39 Date: Wed, 6 Nov 2024 11:07:51 +0100 Subject: [PATCH] test: Declare typed properties for mock objects --- tests/Unit/Space/SpaceManagerTest.php | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/tests/Unit/Space/SpaceManagerTest.php b/tests/Unit/Space/SpaceManagerTest.php index da18d297f..cc1e2cbc7 100644 --- a/tests/Unit/Space/SpaceManagerTest.php +++ b/tests/Unit/Space/SpaceManagerTest.php @@ -43,34 +43,19 @@ class SpaceManagerTest extends TestCase { - /** - * @var \PHPUnit\Framework\MockObject\MockObject&GroupfolderHelper - */ - private GroupfolderHelper $folderHelper; + private MockObject&GroupfolderHelper $folderHelper; private MockObject&RootFolder $rootFolder; - /** - * @var \PHPUnit\Framework\MockObject\MockObject&WorkspaceCheckService - */ - private WorkspaceCheckService $workspaceCheck; + private MockObject&WorkspaceCheckService $workspaceCheck; - /** - * @var \PHPUnit\Framework\MockObject\MockObject&UserGroup - */ - private UserGroup $userGroup; + private MockObject&UserGroup $userGroup; - /** - * @var \PHPUnit\Framework\MockObject\MockObject&SpaceMapper - */ - private SpaceMapper $spaceMapper; + private MockObject&SpaceMapper $spaceMapper; - /** - * @var \PHPUnit\Framework\MockObject\MockObject&WorkspaceManagerGroup - */ - private WorkspaceManagerGroup $workspaceManagerGroup; + private MockObject&WorkspaceManagerGroup $workspaceManagerGroup; - private \PHPUnit\Framework\MockObject\MockObject&ColorCode $colorCode; + private MockObject&ColorCode $colorCode; private SpaceManager $spaceManager;