PHP Класс Elgg\ActionsServiceTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Описание методов

createService() публичный Метод

public createService ( )

executeForwardUrlDataProvider() публичный Метод

invalidActionNamesDataProvider() публичный Метод

route() публичный Метод

public route ( )

setUp() публичный Метод

public setUp ( )

tearDown() публичный Метод

public tearDown ( )

testActionGatekeeper() публичный Метод

testActionGatekeeperForLoginAction() публичный Метод

testActionHookIsTriggered() публичный Метод

testActionReturnValuesAreIgnoredIfNotResponseBuilder() публичный Метод

testActionsAccessLevels() публичный Метод

testCanCancelAjax2Response() публичный Метод

testCanCheckActionNamesForSanity() публичный Метод

See #9793

testCanDecodeJson() публичный Метод

public testCanDecodeJson ( )

testCanExecute() публичный Метод

public 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() публичный Метод

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

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() публичный Метод

public testCanUnregisterActions ( $actions )

testThrowsExceptionForInvalidAjax2ResponseFilter() публичный Метод