Drupal 8  8.0.2
DedupeEntityTest Class Reference
Inheritance diagram for DedupeEntityTest:

Public Member Functions

 testDedupe ($count, $postfix= '', $start=NULL, $length=NULL)
 
 testDedupeEntityInvalidStart ()
 
 testDedupeEntityInvalidLength ()
 
 providerTestDedupe ()
 
- Public Member Functions inherited from MigrateTestCase
 queryResultTest ($iter, $expected_results)
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 entityQueryExpects ($count)
 
- Protected Member Functions inherited from MigrateProcessTestCase
 setUp ()
 
- Protected Member Functions inherited from MigrateTestCase
 getMigration ()
 
 getDatabase (array $database_contents, $connection_options=[])
 
 createSchemaFromRow (array $row)
 
 getValue ($row, $key)
 
 retrievalAssertHelper ($expected_value, $actual_value, $message)
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $entityQuery
 
 $entityQueryFactory
 
 $migrationConfiguration
 
- Protected Attributes inherited from MigrateProcessTestCase
 $plugin
 
 $row
 
 $migrateExecutable
 
- Protected Attributes inherited from MigrateTestCase
 $migrationConfiguration = []
 
 $idMap
 
 $migrationStatus = MigrationInterface::STATUS_IDLE
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

migrate

Member Function Documentation

entityQueryExpects (   $count)
protected

Helper function to add expectations to the mock entity query object.

Parameters
int$countThe number of deduplications to be set up.

References Drupal\entityQuery().

Referenced by DedupeEntityTest\testDedupe().

Here is the call graph for this function:

Here is the caller graph for this function:

providerTestDedupe ( )

Data provider for testDedupe().

setUp ( )
protected

{}

References Drupal\entityQuery().

Here is the call graph for this function:

testDedupe (   $count,
  $postfix = '',
  $start = NULL,
  $length = NULL 
)

Tests entity based deduplication based on providerTestDedupe() values.

providerTestDedupe

References DedupeEntityTest\entityQueryExpects(), MigrateTestCase\getMigration(), UnitTestCase\randomMachineName(), and Unicode\substr().

Here is the call graph for this function:

testDedupeEntityInvalidLength ( )

Tests that invalid length option throws an exception.

References MigrateTestCase\getMigration().

Here is the call graph for this function:

testDedupeEntityInvalidStart ( )

Tests that invalid start position throws an exception.

References MigrateTestCase\getMigration().

Here is the call graph for this function:

Field Documentation

$migrationConfiguration
protected
Initial value:
= array(
'id' => 'test',
)

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