Drupal 8  8.0.2
BlockDependenciesTest Class Reference
Inheritance diagram for BlockDependenciesTest:

Public Member Functions

 testExposedBlock ()
 
 testViewsBlock ()
 

Static Public Attributes

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

Protected Member Functions

 createBlock ($plugin_id, array $settings=array())
 
- 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 ()
 

Detailed Description

Tests views block config dependencies functionality.

views

Member Function Documentation

createBlock (   $plugin_id,
array  $settings = array() 
)
protected

Creates a block instance based on default settings.

Parameters
string$plugin_idThe plugin ID of the block type for this block instance.
array$settings(optional) An associative array of settings for the block entity. Override the defaults by specifying the key and value in the array, for example:
$this->createBlock('system_powered_by_block', array(
'label' => t('Hello, world!'),
));
The following defaults are provided:
  • label: Random string.
  • id: Random string.
  • region: 'sidebar_first'.
  • theme: The default theme.
  • visibility: Empty array.
Returns
The block entity.

References Drupal\config().

Referenced by BlockDependenciesTest\testExposedBlock(), and BlockDependenciesTest\testViewsBlock().

Here is the call graph for this function:

Here is the caller graph for this function:

testExposedBlock ( )

Tests that exposed filter blocks have the correct dependencies.

See Also
::getDerivativeDefinitions()

References BlockDependenciesTest\createBlock().

Here is the call graph for this function:

testViewsBlock ( )

Tests that exposed filter blocks have the correct dependencies.

See Also
::getDerivativeDefinitions()

References BlockDependenciesTest\createBlock().

Here is the call graph for this function:


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