PHP Class Contao\CoreBundle\Test\EventListener\CommandSchedulerListenerTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Afficher le fichier Open project: contao/core-bundle

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
setUp ( )

Private Methods

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

Method Details

setUp() protected méthode

protected setUp ( )

testDisableCron() public méthode

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

testIncompleteInstallation() public méthode

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

testInstantiation() public méthode

Tests the object instantiation.
public testInstantiation ( )

testWithContaoFramework() public méthode

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

testWithoutContaoFramework() public méthode

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