Drupal 8  8.0.2
DbDumpTest Class Reference
Inheritance diagram for DbDumpTest:

Public Member Functions

 containerBuild (ContainerBuilder $container)
 
 testDbDumpCommand ()
 
 testScriptLoad ()
 

Static Public Attributes

static $modules = ['system', 'config', 'dblog', 'menu_link_content', 'link', 'block_content', 'file', 'user']
 

Protected Member Functions

 setUp ()
 
 getTableSchema ($table)
 
 getTableIndexes ($table)
 

Protected Attributes

 $data
 
 $skipTests = FALSE
 
 $originalTableSchemas = []
 
 $originalTableIndexes = []
 
 $tables
 

Detailed Description

Tests for the database dump commands.

Update

Member Function Documentation

containerBuild ( ContainerBuilder  $container)

{}

Register a database cache backend rather than memory-based.

getTableIndexes (   $table)
protected

Returns indexes for a given table.

Parameters
string$tableThe table to find indexes for.
Returns
array The 'primary key', 'unique keys', and 'indexes' portion of the Drupal table schema.

References db_query().

Referenced by DbDumpTest\testScriptLoad().

Here is the call graph for this function:

Here is the caller graph for this function:

getTableSchema (   $table)
protected

Helper function to get a simplified schema for a given table.

Parameters
string$table
Returns
array Array keyed by field name, with the values being the field type.

References db_query().

Referenced by DbDumpTest\testScriptLoad().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )
protected

{}

References Drupal\cache(), Entity\create(), and Database\getConnection().

Here is the call graph for this function:

testDbDumpCommand ( )

Test the command directly.

testScriptLoad ( )

Test loading the script back into the database.

References Drupal\cache(), db_query(), SafeMarkup\format(), Database\getConnection(), DbDumpTest\getTableIndexes(), and DbDumpTest\getTableSchema().

Here is the call graph for this function:

Field Documentation

$modules = ['system', 'config', 'dblog', 'menu_link_content', 'link', 'block_content', 'file', 'user']
static

{}


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