public function testWithContaoFramework()
{
$this->framework->expects($this->once())->method('getAdapter');
$this->framework->expects($this->any())->method('isInitialized')->willReturn(true);
$this->framework->expects($this->any())->method('createInstance')->willReturn($this->getMock('Contao\\FrontendCron', ['run']));
$listener = new CommandSchedulerListener($this->framework, $this->mockConnection());
$listener->onKernelTerminate();
}