PHP Класс Contao\CoreBundle\Test\EventListener\UserSessionListenerTest

Наследование: extends Contao\CoreBundle\Test\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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