Drupal 8  8.0.2
RowEntityRenderersTest Class Reference
Inheritance diagram for RowEntityRenderersTest:

Public Member Functions

 testEntityRenderers ()
 
 testFieldRenderers ()
 

Static Public Attributes

static $modules = ['field', 'filter', 'text', 'node', 'user', 'language', 'views_test_language']
 
static $testViews = array('test_entity_row_renderers')
 
- Static Public Attributes inherited from ViewKernelTestBase
static $modules = array('system', 'views', 'views_test_config', 'views_test_data', 'user')
 

Protected Member Functions

 setUp ()
 
 checkLanguageRenderers ($display, $values)
 
 assertTranslations ($display, $renderer_id, array $expected, $message= '', $group= 'Other')
 
- Protected Member Functions inherited from ViewKernelTestBase
 setUp ($import_test_views=TRUE)
 
 setUpFixtures ()
 
 orderResultSet ($result_set, $column, $reverse=FALSE)
 
 executeView ($view, array $args=array())
 
 schemaDefinition ()
 
 viewsData ()
 
 dataSet ()
 

Protected Attributes

 $langcodes
 
 $expected
 

Detailed Description

Tests the entity row renderers.

views

See Also

Member Function Documentation

assertTranslations (   $display,
  $renderer_id,
array  $expected,
  $message = '',
  $group = 'Other' 
)
protected

Checks that the view results match the expected values.

Parameters
string$displayName of display to test with.
string$renderer_idThe id of the renderer to be tested.
array$expectedAn array of expected title translation values, one for each result row.
string$message(optional) A message to display with the assertion.
string$group(optional) The group this message is in.
Returns
bool TRUE if the assertion succeeded, FALSE otherwise.

References Views\getView(), and Drupal\service().

Referenced by RowEntityRenderersTest\checkLanguageRenderers().

Here is the call graph for this function:

Here is the caller graph for this function:

checkLanguageRenderers (   $display,
  $values 
)
protected

Checks that the language renderer configurations work as expected.

Parameters
string$displayName of display to test with.
array$valuesAn array of node information which are each an array of node titles associated with language keys appropriate for the translation of that node.

References RowEntityRenderersTest\assertTranslations().

Referenced by RowEntityRenderersTest\testEntityRenderers(), and RowEntityRenderersTest\testFieldRenderers().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )
protected

{}

References Entity\create(), ConfigurableLanguage\createFromLangcode(), Drupal\entityManager(), and Drupal\languageManager().

Here is the call graph for this function:

testEntityRenderers ( )

Tests the entity row renderers.

References RowEntityRenderersTest\checkLanguageRenderers().

Here is the call graph for this function:

testFieldRenderers ( )

Tests the field row renderers.

References RowEntityRenderersTest\checkLanguageRenderers().

Here is the call graph for this function:


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