PHP Class Contao\CoreBundle\Test\EventListener\CommandSchedulerListenerTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
testDisableCron ( ) Tests that the listener does nothing if the command scheduler has been disabled.
testIncompleteInstallation ( ) Tests that the listener does nothing if the installation is incomplete.
testInstantiation ( ) Tests the object instantiation.
testWithContaoFramework ( ) Tests that the listener does use the response if the Contao framework is booted.
testWithoutContaoFramework ( ) Tests that the listener does nothing if the Contao framework is not booted.

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
mockConnection ( ) : Doctrine\DBAL\Connection | PHPUnit_Framework_MockObject_MockObject Mocks a database connection object.

Method Details

setUp() protected method

protected setUp ( )

testDisableCron() public method

Tests that the listener does nothing if the command scheduler has been disabled.
public testDisableCron ( )

testIncompleteInstallation() public method

Tests that the listener does nothing if the installation is incomplete.

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testWithContaoFramework() public method

Tests that the listener does use the response if the Contao framework is booted.

testWithoutContaoFramework() public method

Tests that the listener does nothing if the Contao framework is not booted.