PHP Class Elgg\Http\ResponseFactoryTest

Inheritance: extends Elgg\TestCase
Datei anzeigen Open project: elgg/elgg

Public Methods

Method Description
createRequest ( $uri = '', $method = 'POST', $parameters = [], $xhr = false )
createService ( )
requestContextDataProvider ( )
setUp ( )
tearDown ( )
testCanDetectActionRequest ( )
testCanDetectXhrRequest ( )
testCanNotPrepareRedirectResponseWithInvalidCode ( )
testCanNotSendANewResponseAfterAjaxErrorResponseIsSent ( )
testCanNotSendANewResponseAfterAjaxResponseFromApiResponseIsSent ( )
testCanNotSendANewResponseAfterAjaxResponseFromOutputIsSent ( )
testCanNotSendASecondResponse ( )
testCanNotSendModifiedResponse ( )
testCanParseContext ( $path, $expected )
testCanPrepareRedirectResponse ( )
testCanPrepareResponse ( )
testCanSendAjaxErrorResponse ( )
testCanSendAjaxResponseFromApiResponse ( )
testCanSendAjaxResponseFromOutput ( )
testCanSendReponse ( )
testCanSetHeaders ( )
testSendsReponseOnlyOnce ( )

Method Details

createRequest() public method

public createRequest ( $uri = '', $method = 'POST', $parameters = [], $xhr = false )

createService() public method

public createService ( )

requestContextDataProvider() public method

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testCanDetectActionRequest() public method

testCanDetectXhrRequest() public method

testCanNotPrepareRedirectResponseWithInvalidCode() public method

testCanNotSendANewResponseAfterAjaxErrorResponseIsSent() public method

testCanNotSendANewResponseAfterAjaxResponseFromApiResponseIsSent() public method

testCanNotSendANewResponseAfterAjaxResponseFromOutputIsSent() public method

testCanNotSendASecondResponse() public method

testCanNotSendModifiedResponse() public method

testCanParseContext() public method

public testCanParseContext ( $path, $expected )

testCanPrepareRedirectResponse() public method

testCanPrepareResponse() public method

testCanSendAjaxErrorResponse() public method

testCanSendAjaxResponseFromApiResponse() public method

testCanSendAjaxResponseFromOutput() public method

testCanSendReponse() public method

public testCanSendReponse ( )

testCanSetHeaders() public method

public testCanSetHeaders ( )

testSendsReponseOnlyOnce() public method