Contao\CoreBundle\Test\EventListener\CommandSchedulerListenerTest::testWithContaoFramework PHP Method

testWithContaoFramework() public method

Tests that the listener does use the response if the Contao framework is booted.
    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();
    }