PHP Class Helthe\Component\Turbolinks\Tests\TurbolinksTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: helthe/turbolinks

Public Methods

Method Description
testDeletesRequestMethodCookie ( )
testDoesNothingWhenNoLocationHeader ( )
testDoesNothingWhenNoOriginRequestHeader ( )
testDoesNothingWhenNoOriginResponseHeader ( )
testDoesNothingWhenNoSession ( )
testDoesNothingWhenNormalResponse ( )
testDoesntSetSessionRedirectWhenNoHeader ( )
testSetsForbiddenForDifferentHost ( )
testSetsForbiddenForDifferentPort ( )
testSetsForbiddenForDifferentScheme ( )
testSetsHeaderWhenSessionHasRedirect ( )
testSetsRequestMethodCookie ( )
testSetsSessionRedirectWhenRedirect ( )

Protected Methods

Method Description
setUp ( )
tearDown ( )

Private Methods

Method Description
assertContainsRequestMethodCookie ( Response $response, string $method ) Asserts that a response contains the request method cookie.
assertResponseHasNoCookies ( Response $response ) Asserts that a response has no cookies.
createRequest ( string $uri, array $server = [] ) : Request Create a request with specific headers.
getSessionMock ( ) : PHPUnit_Framework_MockObject_MockObject Get a mock of a Symfony Session.

Method Details

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

testDeletesRequestMethodCookie() public method

testDoesNothingWhenNoLocationHeader() public method

testDoesNothingWhenNoOriginRequestHeader() public method

testDoesNothingWhenNoOriginResponseHeader() public method

testDoesNothingWhenNoSession() public method

testDoesNothingWhenNormalResponse() public method

testDoesntSetSessionRedirectWhenNoHeader() public method

testSetsForbiddenForDifferentHost() public method

testSetsForbiddenForDifferentPort() public method

testSetsForbiddenForDifferentScheme() public method

testSetsHeaderWhenSessionHasRedirect() public method

testSetsRequestMethodCookie() public method

testSetsSessionRedirectWhenRedirect() public method