PHP Class Contao\CoreBundle\Test\EventListener\PrettyErrorScreenListenerTest

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

Public Methods

Method Description
getErrorTypes ( ) : array Provides the data for the testContaoPageHandler() method.
setUpBeforeClass ( )
testBackendException ( ) Tests rendering a back end exception.
testBypassUponWrongRequestFormat ( ) Tests that the listener is bypassed if the request format is not "html".
testContaoPageHandler ( integer $type, Exception $exception ) Tests rendering the Contao page handler.
testErrorScreen ( ) Tests rendering the error screen.
testInstantiation ( ) Tests the object instantiation.
testNonExistingPageHandler ( ) Tests rendering a non existing page handler.
testServiceUnavailableHttpException ( ) Tests rendering a service unavailable HTTP exception.
testUnknownHttpException ( ) Tests rendering an unknown HTTP exception.

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
mockTokenStorage ( string $userClass = 'Contao\FrontendUser' ) : Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage | PHPUnit_Framework_MockObject_MockObject Mocks a token storage object.

Method Details

getErrorTypes() public method

Provides the data for the testContaoPageHandler() method.
public getErrorTypes ( ) : array
return array

setUp() protected method

protected setUp ( )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

testBackendException() public method

Tests rendering a back end exception.

testBypassUponWrongRequestFormat() public method

Tests that the listener is bypassed if the request format is not "html".

testContaoPageHandler() public method

Tests rendering the Contao page handler.
public testContaoPageHandler ( integer $type, Exception $exception )
$type integer
$exception Exception

testErrorScreen() public method

Tests rendering the error screen.
public testErrorScreen ( )

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testNonExistingPageHandler() public method

Tests rendering a non existing page handler.

testServiceUnavailableHttpException() public method

Tests rendering a service unavailable HTTP exception.

testUnknownHttpException() public method

Tests rendering an unknown HTTP exception.