Skip to content

Commit

Permalink
test: Declare typed properties for mock objects
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Nov 6, 2024
1 parent 0406dd5 commit 5b0a141
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions tests/Unit/Space/SpaceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5b0a141

Please sign in to comment.