Drupal 8  8.0.2
PageRenderTest Class Reference
Inheritance diagram for PageRenderTest:

Public Member Functions

 testHookPageAttachmentsExceptions ()
 
 testHookPageAlter ()
 
 assertPageRenderHookExceptions ($module, $hook)
 

Detailed Description

Test page rendering hooks.

system

Member Function Documentation

assertPageRenderHookExceptions (   $module,
  $hook 
)

Asserts whether expected exceptions are thrown for invalid hook implementations.

Parameters
string$moduleThe module whose invalid logic in its hooks to enable.
string$hookThe page render hook to assert expected exceptions for.

References Drupal\getContainer(), and Drupal\state().

Referenced by PageRenderTest\testHookPageAlter(), and PageRenderTest\testHookPageAttachmentsExceptions().

Here is the call graph for this function:

Here is the caller graph for this function:

testHookPageAlter ( )

Tests hook_page_attachments_alter() exceptions.

References PageRenderTest\assertPageRenderHookExceptions(), and Drupal\service().

Here is the call graph for this function:

testHookPageAttachmentsExceptions ( )

Tests hook_page_attachments() exceptions.

References PageRenderTest\assertPageRenderHookExceptions(), and Drupal\service().

Here is the call graph for this function:


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