PHP Class Contao\CoreBundle\Test\EventListener\AddToSearchIndexListenerTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method 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.

Protected Methods

Method Description
setUp ( )

Private Methods

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

Method Details

setUp() protected method

protected setUp ( )

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testWithContaoFramework() public method

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

testWithFragment() public method

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

testWithoutContaoFramework() public method

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