PHP 클래스 Contao\CoreBundle\Test\EventListener\StoreRefererListenerTest

파일 보기 프로젝트 열기: contao/core-bundle

공개 메소드들

메소드 설명
noUserProvider ( ) : array Provides the data for the user-less tests.
refererStoredOnKernelResponseProvider ( ) : array Provides the data for the testRefererStoredOnKernelResponse() method.
testInstantiation ( ) Tests the object instantiation.
testListenerSkipIfBackendSessionNotModifiable ( ) Tests that the session is not written if the back end session cannot be modified.
testListenerSkipIfNoUserOnKernelResponse ( AnonymousToken $noUserReturn = null ) Tests that the session is not written when there is no user.
testListenerSkipUponSubRequestOnKernelResponse ( ) Tests that the session is not written upon a sub request.
testRefererStoredOnKernelResponse ( string $scope, Request $request, array $currentReferer, array $expectedReferer ) Tests that the referer is stored upon kernel.response.

비공개 메소드들

메소드 설명
getListener ( Symfony\Component\HttpFoundation\Session\SessionInterface $session = null, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null ) : StoreRefererListener Returns the session listener object.

메소드 상세

noUserProvider() 공개 메소드

Provides the data for the user-less tests.
public noUserProvider ( ) : array
리턴 array

refererStoredOnKernelResponseProvider() 공개 메소드

Provides the data for the testRefererStoredOnKernelResponse() method.

testInstantiation() 공개 메소드

Tests the object instantiation.
public testInstantiation ( )

testListenerSkipIfBackendSessionNotModifiable() 공개 메소드

Tests that the session is not written if the back end session cannot be modified.

testListenerSkipIfNoUserOnKernelResponse() 공개 메소드

Tests that the session is not written when there is no user.
public testListenerSkipIfNoUserOnKernelResponse ( AnonymousToken $noUserReturn = null )
$noUserReturn Symfony\Component\Security\Core\Authentication\Token\AnonymousToken

testListenerSkipUponSubRequestOnKernelResponse() 공개 메소드

Tests that the session is not written upon a sub request.

testRefererStoredOnKernelResponse() 공개 메소드

Tests that the referer is stored upon kernel.response.
public testRefererStoredOnKernelResponse ( string $scope, Request $request, array $currentReferer, array $expectedReferer )
$scope string
$request Symfony\Component\HttpFoundation\Request
$currentReferer array
$expectedReferer array