Drupal 8  8.0.2
ViewTestData Class Reference

Static Public Member Functions

static createTestViews ($class, array $modules)
 
static schemaDefinition ()
 
static viewsData ()
 
static dataSet ()
 

Detailed Description

Provides tests view data and the base test schema with sample data records.

The methods will be used by both views test base classes.

See Also
.
.

Member Function Documentation

static createTestViews (   $class,
array  $modules 
)
static

Create test views from config.

Parameters
string$classThe name of the test class. Installs the listed test views in order.
array$modulesThe module directories to look in for test views.

References Drupal\entityManager(), Drupal\moduleHandler(), and Drupal\service().

Referenced by ViewsTemplateTest\setUp(), ExtensionViewsFieldTest\setUp(), NidArgumentTest\setUp(), ViewsBlockTest\setUp(), TaxonomyParentUITest\setUp(), AccessRoleUITest\setUp(), HandlerTest\setUp(), ViewEntityDependenciesTest\setUp(), FieldEntityTest\setUp(), ViewKernelTestBase\setUp(), ViewsIntegrationTest\setUp(), DateTimeHandlerTestBase\setUp(), NodeLanguageTest\setUp(), ContactLinkTest\setUp(), TaxonomyIndexTidUiTest\setUp(), IntegrationTest\setUp(), EntityReferenceRelationshipTest\setUp(), and FieldUIDeleteTest\testDeleteField().

Here is the call graph for this function:

Here is the caller graph for this function:

static dataSet ( )
static

Returns a very simple test dataset.

Referenced by ViewKernelTestBase\dataSet(), ViewTestBase\dataSet(), and CounterTest\setUp().

Here is the caller graph for this function:

static schemaDefinition ( )
static

Returns the schema definition.

Referenced by ViewKernelTestBase\schemaDefinition(), and ViewTestBase\schemaDefinition().

Here is the caller graph for this function:

static viewsData ( )
static

Returns the views data definition.

Referenced by ViewsDataHelperTest\viewsData(), ViewsDataTest\viewsData(), ViewKernelTestBase\viewsData(), and ViewTestBase\viewsData().

Here is the caller graph for this function:


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