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

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

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

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

Защищенные методы

Метод Описание
setUp ( )

Приватные методы

Метод Описание
mockPostResponseEvent ( string | null $requestUri = null ) : PHPUnit_Framework_MockObject_MockObject | Symfony\Component\HttpKernel\Event\PostResponseEvent Returns a PostResponseEvent mock object.

Описание методов

setUp() защищенный Метод

protected setUp ( )

testInstantiation() публичный Метод

Tests the object instantiation.
public testInstantiation ( )

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.
public testWithFragment ( )

testWithoutContaoFramework() публичный Метод

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