Drupal 8  8.0.2
MigrateDrupalTestBase Class Reference
Inheritance diagram for MigrateDrupalTestBase:

Static Public Attributes

static $modules = array('system', 'user', 'field', 'migrate_drupal', 'options', 'file')
 
- Static Public Attributes inherited from MigrateTestBase
static $modules = array('migrate')
 

Protected Member Functions

 setUp ()
 
 loadFixture ($path)
 
 installMigrations ($version)
 
- Protected Member Functions inherited from MigrateTestBase
 setUp ()
 
 tearDown ()
 
 prepareMigrations (array $id_mappings)
 
 executeMigration ($migration)
 
 executeMigrations (array $ids)
 

Additional Inherited Members

- Public Member Functions inherited from MigrateTestBase
 display ($message, $type= 'status')
 
 startCollectingMessages ()
 
 stopCollectingMessages ()
 
- Protected Attributes inherited from MigrateTestBase
 $collectMessages = FALSE
 
 $migrateMessages
 
 $migration
 
 $sourceDatabase
 

Detailed Description

Base class for Drupal migration tests.

Member Function Documentation

installMigrations (   $version)
protected

Turn all the migration templates for the specified drupal version into real migration entities so we can test them.

Parameters
string$versionDrupal version as provided in migration_tags - e.g., 'Drupal 6'.

References Drupal\service().

Referenced by MigrateDrupal7TestBase\setUp(), and MigrateDrupal6TestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

loadFixture (   $path)
protected

Loads a database fixture into the source database connection.

Parameters
string$pathPath to the dump file.

References Database\getConnection(), and Database\setActiveConnection().

Referenced by MigrateDrupal7TestBase\setUp(), and MigrateDrupal6TestBase\setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )
protected

{}


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