class ViewTestData (View source)

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

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

Methods

static 
createTestViews(string $class, array $modules)

Create test views from config.

static 
schemaDefinition()

Returns the schema definition.

static 
viewsData()

Returns the views data definition.

static 
dataSet()

Returns a very simple test dataset.

Details

static createTestViews(string $class, array $modules)

Create test views from config.

Parameters

string $class

The name of the test class. Installs the listed test views in order.

array $modules

The module directories to look in for test views.

static schemaDefinition()

internal  
 

Returns the schema definition.

static viewsData()

Returns the views data definition.

static dataSet()

Returns a very simple test dataset.