Drupal 8  8.0.2
RenderElementTypesTest Class Reference
Inheritance diagram for RenderElementTypesTest:

Public Member Functions

 testContainer ()
 
 testHtmlTag ()
 
 testMoreLink ()
 
 testSystemCompactLink ()
 

Static Public Attributes

static $modules = array('system', 'router_test')
 

Protected Member Functions

 setUp ()
 
 assertElements (array $elements, $expected_html, $message)
 

Detailed Description

Tests the markup of core render element types passed to drupal_render().

Common

Member Function Documentation

assertElements ( array  $elements,
  $expected_html,
  $message 
)
protected

Asserts that an array of elements is rendered properly.

Parameters
array$elementsThe render element array to test.
string$expected_htmlThe expected markup.
string$messageAssertion message.

References Html\escape(), and Drupal\service().

Referenced by RenderElementTypesTest\testContainer(), and RenderElementTypesTest\testHtmlTag().

Here is the call graph for this function:

Here is the caller graph for this function:

testContainer ( )

Tests system #type 'container'.

References RenderElementTypesTest\assertElements().

Here is the call graph for this function:

testHtmlTag ( )

Tests system #type 'html_tag'.

References RenderElementTypesTest\assertElements().

Here is the call graph for this function:

testMoreLink ( )

Tests system #type 'more_link'.

References Url\fromRoute(), Url\fromUri(), Drupal\service(), and Drupal\urlGenerator().

Here is the call graph for this function:

testSystemCompactLink ( )

Tests system #type 'system_compact_link'.

References Drupal\request(), and Drupal\service().

Here is the call graph for this function:


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