Drupal 8  8.0.2
CustomPageExceptionHtmlSubscriberTest Class Reference
Inheritance diagram for CustomPageExceptionHtmlSubscriberTest:

Public Member Functions

 testHandleWithPostRequest ()
 
 testHandleWithGetRequest ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 setupStubAliasManager ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $kernel
 
 $configFactory
 
 $aliasManager
 
 $logger
 
 $errorLog
 
 $customPageSubscriber
 
 $redirectDestination
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

EventSubscriber

Member Function Documentation

setUp ( )
protected

{}

References Drupal\configFactory(), UnitTestCase\getConfigFactoryStub(), and Drupal\logger().

Here is the call graph for this function:

setupStubAliasManager ( )
protected

Sets up an alias manager that does nothing.

Referenced by CustomPageExceptionHtmlSubscriberTest\testHandleWithGetRequest(), and CustomPageExceptionHtmlSubscriberTest\testHandleWithPostRequest().

Here is the caller graph for this function:

tearDown ( )
protected

{}

testHandleWithGetRequest ( )

Tests onHandleException with a GET request.

References UrlHelper\buildQuery(), and CustomPageExceptionHtmlSubscriberTest\setupStubAliasManager().

Here is the call graph for this function:

testHandleWithPostRequest ( )

Tests onHandleException with a POST request.

References UrlHelper\buildQuery(), and CustomPageExceptionHtmlSubscriberTest\setupStubAliasManager().

Here is the call graph for this function:


The documentation for this class was generated from the following file: