Contao\CoreBundle\Test\EventListener\AddToSearchIndexListenerTest::testWithoutContaoFramework PHP Method

testWithoutContaoFramework() public method

Tests that the listener does nothing if the Contao framework is not booted.
    public function testWithoutContaoFramework()
    {
        $this->framework->expects($this->any())->method('isInitialized')->willReturn(false);
        $listener = new AddToSearchIndexListener($this->framework);
        $event = $this->mockPostResponseEvent();
        $event->expects($this->never())->method('getResponse');
        $listener->onKernelTerminate($event);
    }