stable

Clone or download

Read-only

Run Psalm on the OAuth2 Server unit tests (for real this time)

The previous attempt (git #tuleap/stable/f8af0191319d2958601d3dfd071530638e76ad31) was not successful due to some issues in the Psalm Mockery plugin. Since we do not need Mockery anymore we can now just use the Psalm PHPUnit plugin on its own. Part of request #20106: Run Psalm on unit tests Change-Id: Icf883140ca301b8b9ec925f281930464e1594905

Modified Files

Name
M plugins/oauth2_server/tests/unit/AccessToken/OAuth2AccessTokenCreatorTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/AccessToken/OAuth2AccessTokenRevokerTest.php +5 −6 Go to diff View file
M plugins/oauth2_server/tests/unit/AccessToken/OAuth2AccessTokenVerifierTest.php +27 −7 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/AddAppControllerTest.php +4 −4 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/AdminOAuth2AppsPresenterBuilderTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/DeleteAppControllerTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/EditAppControllerTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/NewClientSecretControllerTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/OAuth2AppProjectVerifierTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/ProjectAdmin/ListAppsControllerTest.php +4 −4 Go to diff View file
M plugins/oauth2_server/tests/unit/Administration/SiteAdmin/SiteAdminListAppsControllerTest.php +5 −5 Go to diff View file
M plugins/oauth2_server/tests/unit/App/AppFactoryTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/App/ClientSecretUpdaterTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/App/NewOAuth2AppTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/App/OAuth2AppCredentialVerifierTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationCodeResponseFactoryTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationEndpointControllerTest.php +7 −7 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationEndpointProcessConsentControllerTest.php +6 −6 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationFormPresenterBuilderTest.php +2 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/AuthorizationServer/AuthorizationFormRendererTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AccessTokenGrantControllerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AccessTokenGrantRepresentationBuilderTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AuthorizationCode/OAuth2AuthorizationCodeCreatorTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AuthorizationCode/OAuth2AuthorizationCodeVerifierTest.php +4 −4 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/AuthorizationCode/OAuth2GrantAccessTokenFromAuthorizationCodeTest.php +4 −4 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/OAuth2ClientAuthenticationMiddlewareTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/RefreshToken/OAuth2GrantAccessTokenFromRefreshTokenTest.php +4 −4 Go to diff View file
M plugins/oauth2_server/tests/unit/Grant/TokenRevocationControllerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/OpenIDConnect/Discovery/DiscoveryControllerTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/OpenIDConnect/IDToken/OpenIDConnectIDTokenCreatorTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/OpenIDConnect/IDToken/OpenIDConnectSigningKeyFactoryTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/RefreshToken/OAuth2RefreshTokenCreatorTest.php +5 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/RefreshToken/OAuth2RefreshTokenRevokerTest.php +4 −4 Go to diff View file
M plugins/oauth2_server/tests/unit/RefreshToken/OAuth2RefreshTokenVerifierTest.php +4 −4 Go to diff View file
M plugins/oauth2_server/tests/unit/Scope/OAuth2ScopeRetrieverTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/Scope/OAuth2ScopeSaverTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/Scope/ScopeExtractorTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/User/Account/AccountAppsControllerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/User/Account/AppRevocationControllerTest.php +3 −3 Go to diff View file
M plugins/oauth2_server/tests/unit/User/Account/AppsPresenterBuilderTest.php +5 −5 Go to diff View file
M plugins/oauth2_server/tests/unit/User/AuthorizationComparatorTest.php +1 −1 Go to diff View file
M plugins/oauth2_server/tests/unit/User/AuthorizationCreatorTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/User/AuthorizationRevokerTest.php +2 −2 Go to diff View file
M plugins/oauth2_server/tests/unit/User/AuthorizedScopeFactoryTest.php +7 −3 Go to diff View file
M src/composer.json +0 −1 Go to diff View file
M src/composer.lock +1 −55 Go to diff View file
M tests/lib/TemporaryTestDirectory.php +4 −1 Go to diff View file
M tests/psalm/psalm.xml +1 −0 Go to diff View file
M tests/unit/common/Authentication/Scope/AuthenticationScopeThrowOnActualMethodCall.php +19 −4 Go to diff View file
M tests/unit/common/Authentication/Scope/AuthenticationTestCoveringScope.php +8 −1 Go to diff View file