PHP Class Elgg\ActionsServiceTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: elgg/elgg

Méthodes publiques

Méthode Description
createService ( )
executeForwardUrlDataProvider ( )
invalidActionNamesDataProvider ( )
route ( )
setUp ( )
tearDown ( )
testActionGatekeeper ( )
testActionGatekeeperForLoginAction ( )
testActionHookIsTriggered ( )
testActionReturnValuesAreIgnoredIfNotResponseBuilder ( )
testActionsAccessLevels ( )
testCanCancelAjax2Response ( )
testCanCheckActionNamesForSanity ( $name ) See #9793
testCanDecodeJson ( )
testCanExecute ( )
testCanFilterAjax2Response ( )
testCanFilterResponseBuilder ( )
testCanGenerateValidTokens ( )
testCanNotExecuteActionWithoutActionFile ( )
testCanNotExecuteAdminActionIfNotAdmin ( )
testCanNotExecuteIfActionFileIsMissing ( )
testCanNotExecuteLoggedInActionIfLoggedOut ( )
testCanNotExecuteUnregisteredAction ( )
testCanNotExecuteWithInvalidTokens ( )
testCanNotValidateExpiredToken ( )
testCanNotValidateTokenAfterSessionExpiry ( )
testCanOverrideRegisteredActions ( )
testCanRedirectOnAjax2Request ( )
testCanRedirectOnAjaxRequest ( )
testCanRedirectOnNonAjaxRequest ( )
testCanRefreshTokens ( )
testCanRegisterActionWithUnknownAccessLevel ( )
testCanRegisterActionWithoutFilename ( )
testCanRegisterFilesAsActions ( ) Tests register, exists and unregisrer
testCanResolveForwardUrl ( $url, $expected ) The logic is a bit odd. See #9792
testCanRespondToAjax2Request ( ) This test will implement the flow without triggering ajax forward hook
testCanRespondToAjax2RequestFromErrorResponseBuilderWithErrorStatusCode ( )
testCanRespondToAjax2RequestFromErrorResponseBuilderWithOkStatusCode ( )
testCanRespondToAjax2RequestFromOkResponseBuilder ( )
testCanRespondToAjax2RequestFromRedirectResponseBuilder ( )
testCanRespondToAjaxRequest ( ) This test will implement the flow without triggering ajax forward hook
testCanRespondToAjaxRequestFromErrorResponseBuilder ( )
testCanRespondToAjaxRequestFromOkResponseBuilder ( )
testCanRespondToAjaxRequestFromRedirectResponseBuilder ( )
testCanRespondToNonAjaxRequest ( ) Non-xhr call to an action must always result in a redirect This test will implement the flow without triggering ajax forward hook
testCanRespondToNonAjaxRequestFromErrorResponseBuilder ( )
testCanRespondToNonAjaxRequestFromOkResponseBuilder ( )
testCanRespondToNonAjaxRequestFromRedirectResponseBuilder ( )
testCanRespondWithErrorToAjax2Request ( )
testCanRespondWithErrorToAjaxRequest ( )
testCanRespondWithErrorToNonAjaxRequest ( ) Non-xhr call to an action must always result in a redirect
testCanUnregisterActions ( $actions )
testThrowsExceptionForInvalidAjax2ResponseFilter ( )

Method Details

createService() public méthode

public createService ( )

executeForwardUrlDataProvider() public méthode

invalidActionNamesDataProvider() public méthode

route() public méthode

public route ( )

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testActionGatekeeper() public méthode

testActionGatekeeperForLoginAction() public méthode

testActionHookIsTriggered() public méthode

testActionReturnValuesAreIgnoredIfNotResponseBuilder() public méthode

testActionsAccessLevels() public méthode

testCanCancelAjax2Response() public méthode

testCanCheckActionNamesForSanity() public méthode

See #9793

testCanDecodeJson() public méthode

public testCanDecodeJson ( )

testCanExecute() public méthode

public testCanExecute ( )

testCanFilterAjax2Response() public méthode

testCanFilterResponseBuilder() public méthode

testCanGenerateValidTokens() public méthode

testCanNotExecuteActionWithoutActionFile() public méthode

testCanNotExecuteAdminActionIfNotAdmin() public méthode

testCanNotExecuteIfActionFileIsMissing() public méthode

testCanNotExecuteLoggedInActionIfLoggedOut() public méthode

testCanNotExecuteUnregisteredAction() public méthode

testCanNotExecuteWithInvalidTokens() public méthode

testCanNotValidateExpiredToken() public méthode

testCanNotValidateTokenAfterSessionExpiry() public méthode

testCanOverrideRegisteredActions() public méthode

testCanRedirectOnAjax2Request() public méthode

testCanRedirectOnAjaxRequest() public méthode

testCanRedirectOnNonAjaxRequest() public méthode

testCanRefreshTokens() public méthode

testCanRegisterActionWithUnknownAccessLevel() public méthode

testCanRegisterActionWithoutFilename() public méthode

testCanRegisterFilesAsActions() public méthode

Tests register, exists and unregisrer

testCanResolveForwardUrl() public méthode

The logic is a bit odd. See #9792
public testCanResolveForwardUrl ( $url, $expected )

testCanRespondToAjax2Request() public méthode

This test will implement the flow without triggering ajax forward hook

testCanRespondToAjax2RequestFromErrorResponseBuilderWithErrorStatusCode() public méthode

testCanRespondToAjax2RequestFromErrorResponseBuilderWithOkStatusCode() public méthode

testCanRespondToAjax2RequestFromOkResponseBuilder() public méthode

testCanRespondToAjax2RequestFromRedirectResponseBuilder() public méthode

testCanRespondToAjaxRequest() public méthode

This test will implement the flow without triggering ajax forward hook

testCanRespondToAjaxRequestFromErrorResponseBuilder() public méthode

testCanRespondToAjaxRequestFromOkResponseBuilder() public méthode

testCanRespondToAjaxRequestFromRedirectResponseBuilder() public méthode

testCanRespondToNonAjaxRequest() public méthode

Non-xhr call to an action must always result in a redirect This test will implement the flow without triggering ajax forward hook

testCanRespondToNonAjaxRequestFromErrorResponseBuilder() public méthode

testCanRespondToNonAjaxRequestFromOkResponseBuilder() public méthode

testCanRespondToNonAjaxRequestFromRedirectResponseBuilder() public méthode

testCanRespondWithErrorToAjax2Request() public méthode

testCanRespondWithErrorToAjaxRequest() public méthode

testCanRespondWithErrorToNonAjaxRequest() public méthode

Non-xhr call to an action must always result in a redirect

testCanUnregisterActions() public méthode

public testCanUnregisterActions ( $actions )

testThrowsExceptionForInvalidAjax2ResponseFilter() public méthode