PHP Class Contao\CoreBundle\Test\EventListener\AddToSearchIndexListenerTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Afficher le fichier Open project: contao/core-bundle

Méthodes publiques

Méthode Description
testInstantiation ( ) Tests the object instantiation.
testWithContaoFramework ( ) Tests that the listener does use the response if the Contao framework is booted.
testWithFragment ( ) Tests that the listener does nothing if the request is a fragment.
testWithoutContaoFramework ( ) Tests that the listener does nothing if the Contao framework is not booted.

Méthodes protégées

Méthode Description
setUp ( )

Private Methods

Méthode Description
mockPostResponseEvent ( string | null $requestUri = null ) : PHPUnit_Framework_MockObject_MockObject | Symfony\Component\HttpKernel\Event\PostResponseEvent Returns a PostResponseEvent mock object.

Method Details

setUp() protected méthode

protected setUp ( )

testInstantiation() public méthode

Tests the object instantiation.
public testInstantiation ( )

testWithContaoFramework() public méthode

Tests that the listener does use the response if the Contao framework is booted.

testWithFragment() public méthode

Tests that the listener does nothing if the request is a fragment.
public testWithFragment ( )

testWithoutContaoFramework() public méthode

Tests that the listener does nothing if the Contao framework is not booted.