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);
}