Drupal 8  8.0.2
MigrateBlockTest Class Reference
Inheritance diagram for MigrateBlockTest:

Public Member Functions

 assertEntity ($id, $visibility, $region, $theme, $weight)
 
 testBlockMigration ()
 
- Public Member Functions inherited from MigrateTestBase
 display ($message, $type= 'status')
 
 startCollectingMessages ()
 
 stopCollectingMessages ()
 

Static Public Attributes

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

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from MigrateDrupal6TestBase
 setUp ()
 
 migrateUsers ($include_pictures=TRUE)
 
 migrateContentTypes ()
 
 migrateFields ()
 
 migrateContent ($include_revisions=FALSE)
 
 migrateTaxonomy ()
 
- Protected Member Functions inherited from MigrateDrupalTestBase
 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

- Protected Attributes inherited from MigrateTestBase
 $collectMessages = FALSE
 
 $migrateMessages
 
 $migration
 
 $sourceDatabase
 

Detailed Description

Tests migration of blocks to configuration entities.

migrate_drupal_6

Member Function Documentation

assertEntity (   $id,
  $visibility,
  $region,
  $theme,
  $weight 
)

Asserts various aspects of a block.

Parameters
string$idThe block ID.
array$visibilityThe block visibility settings.
string$regionThe display region.
string$themeThe theme.
string$weightThe block weight.

Asserts various aspects of a block.

Parameters
string$idThe block ID.
string$plugin_idThe block's plugin ID.
array$rolesRole IDs the block is expected to have.
string$pagesThe list of pages on which the block should appear.
string$regionThe display region.
string$themeThe theme.
string$weightThe block weight.

References Entity\load().

Referenced by MigrateBlockTest\testBlockMigration().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )
protected

{}

References Drupal\config(), MigrateTestBase\executeMigrations(), and Drupal\service().

Here is the call graph for this function:

testBlockMigration ( )

Tests the block migration.

References MigrateBlockTest\assertEntity(), Entity\load(), and Entity\loadMultiple().

Here is the call graph for this function:

Field Documentation

$modules
static
Initial value:
= [
'block',
'views',
'comment',
'menu_ui',
'block_content',
]

{}


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