Contao\CoreBundle\Test\EventListener\CommandSchedulerListenerTest::testWithoutContaoFramework PHP Méthode

testWithoutContaoFramework() public méthode

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);
        $this->framework->expects($this->never())->method('getAdapter');
        $listener = new CommandSchedulerListener($this->framework, $this->mockConnection());
        $listener->onKernelTerminate();
    }