Drupal 8  8.0.2
FieldEntityLinkTest Class Reference
Inheritance diagram for FieldEntityLinkTest:

Public Member Functions

 testEntityLink ()
 

Static Public Attributes

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

Protected Member Functions

 setUpFixtures ()
 
 doTestEntityLink (AccountInterface $account, $expected_results)
 
- 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

 $adminUser
 

Detailed Description

Tests the core Drupal handler.

views

Member Function Documentation

doTestEntityLink ( AccountInterface  $account,
  $expected_results 
)
protected

Tests whether entity links behave as expected.

Parameters
\Drupal\Core\Session\AccountInterface$accountThe user account to be used to run the test;
bool[]$expected_results An associative array of expected results keyed by link template name.

References Drupal\currentUser(), Views\getView(), and Entity\loadMultiple().

Referenced by FieldEntityLinkTest\testEntityLink().

Here is the call graph for this function:

Here is the caller graph for this function:

setUpFixtures ( )
protected

{}

References AccountInterface\ANONYMOUS_ROLE, Entity\create(), and Entity\load().

Here is the call graph for this function:

testEntityLink ( )

Tests entity link fields.

References Drupal\currentUser(), and FieldEntityLinkTest\doTestEntityLink().

Here is the call graph for this function:


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