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

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

공개 메소드들

메소드 설명
noUserProvider ( ) : array Provides the data for the user-less tests.
scopeBagProvider ( ) : array Provides the data for the testSessionReplacedOnKernelRequest() method.
scopeTableProvider ( ) : array Provides the data for the testSessionStoredOnKernelResponse() method.
testInstantiation ( ) Tests the object instantiation.
testListenerSkipIfNoContaoUserOnKernelRequest ( ) Tests that the session bag is not requested if there is no Contao user upon kernel.request.
testListenerSkipIfNoContaoUserOnKernelResponse ( ) Tests that neither the session bag nor doctrine is requested if there is no Contao user upon kernel.response.
testListenerSkipIfNoUserOnKernelRequest ( AnonymousToken $noUserReturn = null ) Tests that the session bag is not requested when there is no user.
testListenerSkipIfNoUserOnKernelResponse ( AnonymousToken $noUserReturn = null ) Tests that neither the session bag nor doctrine is requested when there is no user.
testListenerSkipUponSubRequestOnKernelRequest ( ) Tests that the session bag is not requested upon a sub request.
testListenerSkipUponSubRequestOnKernelResponse ( ) Tests that neither the session bag nor doctrine is requested upon a sub request.
testSessionReplacedOnKernelRequest ( string $scope, string $userClass, string $sessionBagName ) Tests that the session is replaced upon kernel.request.
testSessionStoredOnKernelResponse ( string $scope, string $userClass, string $userTable ) Tests that the session is stored upon kernel.response.

비공개 메소드들

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

메소드 상세

noUserProvider() 공개 메소드

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

scopeBagProvider() 공개 메소드

Provides the data for the testSessionReplacedOnKernelRequest() method.
public scopeBagProvider ( ) : array
리턴 array

scopeTableProvider() 공개 메소드

Provides the data for the testSessionStoredOnKernelResponse() method.
public scopeTableProvider ( ) : array
리턴 array

testInstantiation() 공개 메소드

Tests the object instantiation.
public testInstantiation ( )

testListenerSkipIfNoContaoUserOnKernelRequest() 공개 메소드

Tests that the session bag is not requested if there is no Contao user upon kernel.request.

testListenerSkipIfNoContaoUserOnKernelResponse() 공개 메소드

Tests that neither the session bag nor doctrine is requested if there is no Contao user upon kernel.response.

testListenerSkipIfNoUserOnKernelRequest() 공개 메소드

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

testListenerSkipIfNoUserOnKernelResponse() 공개 메소드

Tests that neither the session bag nor doctrine is requested when there is no user.
public testListenerSkipIfNoUserOnKernelResponse ( AnonymousToken $noUserReturn = null )
$noUserReturn Symfony\Component\Security\Core\Authentication\Token\AnonymousToken

testListenerSkipUponSubRequestOnKernelRequest() 공개 메소드

Tests that the session bag is not requested upon a sub request.

testListenerSkipUponSubRequestOnKernelResponse() 공개 메소드

Tests that neither the session bag nor doctrine is requested upon a sub request.

testSessionReplacedOnKernelRequest() 공개 메소드

Tests that the session is replaced upon kernel.request.
public testSessionReplacedOnKernelRequest ( string $scope, string $userClass, string $sessionBagName )
$scope string
$userClass string
$sessionBagName string

testSessionStoredOnKernelResponse() 공개 메소드

Tests that the session is stored upon kernel.response.
public testSessionStoredOnKernelResponse ( string $scope, string $userClass, string $userTable )
$scope string
$userClass string
$userTable string