stable

Clone or download

Read-only

Drop usage of Mockery in GitLFS unit tests

Also made changes to prepare the use of Psalm on those unit tests but the remaining changes are still too big to be done in this contribution. Part of request #21775: Favor PHPUnit mock system over Mockery - part 2 Change-Id: I9c5b482b02a0f76e1d94423a8a38aaf07b1ff279

Modified Files

Name
M plugins/gitlfs/tests/unit/Authorization/Action/ActionAuthorizationRemoverTest.php +29 −30 Go to diff View file
M plugins/gitlfs/tests/unit/Authorization/Action/ActionAuthorizationTokenCreatorTest.php +21 −22 Go to diff View file
M plugins/gitlfs/tests/unit/Authorization/Action/ActionAuthorizationVerifierTest.php +52 −55 Go to diff View file
M plugins/gitlfs/tests/unit/Authorization/User/UserTokenCreatorTest.php +14 −15 Go to diff View file
M plugins/gitlfs/tests/unit/Authorization/User/UserTokenVerifierTest.php +93 −94 Go to diff View file
M plugins/gitlfs/tests/unit/Batch/Request/BatchRequestOperationTest.php +5 −4 Go to diff View file
M plugins/gitlfs/tests/unit/Batch/Request/BatchRequestTest.php +8 −7 Go to diff View file
M plugins/gitlfs/tests/unit/Download/FileDownloaderControllerTest.php +7 −10 Go to diff View file
M plugins/gitlfs/tests/unit/GitPHPDisplay/DetectorTest.php +5 −7 Go to diff View file
M plugins/gitlfs/tests/unit/GitPHPDisplay/DownloadURLBuilderTest.php +15 −17 Go to diff View file
M plugins/gitlfs/tests/unit/HTTP/LFSAPIHTTPAccessControlTest.php +55 −58 Go to diff View file
M plugins/gitlfs/tests/unit/HTTP/LSFAPIHTTPAuthorizationTest.php +68 −67 Go to diff View file
M plugins/gitlfs/tests/unit/LFSJSONHTTPDispatchableTest.php +19 −22 Go to diff View file
M plugins/gitlfs/tests/unit/LFSObject/LFSObjectIDTest.php +5 −4 Go to diff View file
M plugins/gitlfs/tests/unit/LFSObject/LFSObjectRemoverTest.php +19 −20 Go to diff View file
M plugins/gitlfs/tests/unit/LFSObject/LFSObjectRetrieverTest.php +46 −42 Go to diff View file
M plugins/gitlfs/tests/unit/LFSObject/LFSObjectTest.php +7 −9 Go to diff View file
M plugins/gitlfs/tests/unit/Lock/LockDestructorTest.php +20 −29 Go to diff View file
M plugins/gitlfs/tests/unit/Lock/Request/LockCreateRequestTest.php +5 −4 Go to diff View file
M plugins/gitlfs/tests/unit/Lock/Request/LockListRequestTest.php +26 −16 Go to diff View file
M plugins/gitlfs/tests/unit/Lock/Response/LockResponseBuilderTest.php +18 −31 Go to diff View file
M plugins/gitlfs/tests/unit/SSHAuthenticate/LFSEndPointDiscoveryTest.php +8 −14 Go to diff View file
M plugins/gitlfs/tests/unit/SSHAuthenticate/SSHAuthenticateResponseBuilderTest.php +27 −42 Go to diff View file
M plugins/gitlfs/tests/unit/SSHAuthenticate/SSHAuthenticateTest.php +94 −99 Go to diff View file
M plugins/gitlfs/tests/unit/Statistics/CollectorTest.php +10 −12 Go to diff View file