PHP Class Elgg\Http\ResponseFactoryTest

Inheritance: extends Elgg\TestCase
Afficher le fichier Open project: elgg/elgg

Méthodes publiques

Méthode 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 méthode

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

createService() public méthode

public createService ( )

requestContextDataProvider() public méthode

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testCanDetectActionRequest() public méthode

testCanDetectXhrRequest() public méthode

testCanNotPrepareRedirectResponseWithInvalidCode() public méthode

testCanNotSendANewResponseAfterAjaxErrorResponseIsSent() public méthode

testCanNotSendANewResponseAfterAjaxResponseFromApiResponseIsSent() public méthode

testCanNotSendANewResponseAfterAjaxResponseFromOutputIsSent() public méthode

testCanNotSendASecondResponse() public méthode

testCanNotSendModifiedResponse() public méthode

testCanParseContext() public méthode

public testCanParseContext ( $path, $expected )

testCanPrepareRedirectResponse() public méthode

testCanPrepareResponse() public méthode

testCanSendAjaxErrorResponse() public méthode

testCanSendAjaxResponseFromApiResponse() public méthode

testCanSendAjaxResponseFromOutput() public méthode

testCanSendReponse() public méthode

public testCanSendReponse ( )

testCanSetHeaders() public méthode

public testCanSetHeaders ( )

testSendsReponseOnlyOnce() public méthode