Drupal 8  8.0.2
ViewsHooksTest Class Reference
Inheritance diagram for ViewsHooksTest:

Public Member Functions

 testHooks ()
 
 testViewsPreRenderViewsFormViewsForm ()
 

Static Public Attributes

static $testViews = array('test_view')
 
- Static Public Attributes inherited from ViewKernelTestBase
static $modules = array('system', 'views', 'views_test_config', 'views_test_data', 'user')
 

Protected Member Functions

 setUp ()
 
- 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

 $moduleHandler
 

Static Protected Attributes

static $hooks
 

Detailed Description

Tests that views hooks are registered when defined in $module.views.inc.

views

See Also
views_hook_info().
field_hook_info().

Member Function Documentation

testHooks ( )

Tests the hooks.

References format_string(), Views\getView(), and Drupal\moduleHandler().

Here is the call graph for this function:

testViewsPreRenderViewsFormViewsForm ( )

Tests how hook_views_form_substitutions() makes substitutions.

See Also
views_test_data_views_form_substitutions()
views_pre_render_views_form_views_form()

References Drupal\service().

Here is the call graph for this function:

Field Documentation

$hooks
staticprotected
Initial value:
= array (
'views_data' => 'all',
'views_data_alter' => 'alter',
'views_query_substitutions' => 'view',
'views_form_substitutions' => 'view',
'views_analyze' => 'view',
'views_pre_view' => 'view',
'views_pre_build' => 'view',
'views_post_build' => 'view',
'views_pre_execute' => 'view',
'views_post_execute' => 'view',
'views_pre_render' => 'view',
'views_post_render' => 'view',
'views_query_alter' => 'view',
'views_invalidate_cache' => 'all',
)

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