class SmartSqlWithLongPluginIdTest in Smart SQL ID Map 1.1.x
Same name and namespace in other branches
- 1.0.x tests/src/Unit/Plugin/migrate/id_map/SmartSqlWithLongPluginIdTest.php \Drupal\Tests\smart_sql_idmap\Unit\Plugin\migrate\id_map\SmartSqlWithLongPluginIdTest
Tests the Smart SQL ID map plugin with a long migration plugin ID.
@group smart_sql_idmap
Hierarchy
- class \Drupal\Tests\UnitTestCase extends \PHPUnit\Framework\TestCase uses \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, PhpUnitCompatibilityTrait, PhpUnitWarnings
- class \Drupal\Tests\migrate\Unit\MigrateTestCase
- class \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest
- class \Drupal\Tests\smart_sql_idmap\Unit\Plugin\migrate\id_map\SmartSqlTest
- class \Drupal\Tests\smart_sql_idmap\Unit\Plugin\migrate\id_map\SmartSqlWithLongPluginIdTest
- class \Drupal\Tests\smart_sql_idmap\Unit\Plugin\migrate\id_map\SmartSqlTest
- class \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest
- class \Drupal\Tests\migrate\Unit\MigrateTestCase
Expanded class hierarchy of SmartSqlWithLongPluginIdTest
File
- tests/
src/ Unit/ Plugin/ migrate/ id_map/ SmartSqlWithLongPluginIdTest.php, line 10
Namespace
Drupal\Tests\smart_sql_idmap\Unit\Plugin\migrate\id_mapView source
class SmartSqlWithLongPluginIdTest extends SmartSqlTest {
/**
* {@inheritdoc}
*/
protected $migrationConfiguration = [
'id' => 'a_non_derived_migration_plugin_id_with_a_very_long_name',
];
/**
* {@inheritdoc}
*/
protected $expectedMapTableName = 'm_map_a_non_derived_migration_plugin_id_with_a_very_long_name';
/**
* {@inheritdoc}
*/
protected $expectedPrefixedMapTableName = 'm_map_a_non_derived_migration_plugin_i_6f26b5682a68dbd60';
/**
* {@inheritdoc}
*/
protected $expectedMessageTableName = 'm_message_a_non_derived_migration_plugin_id_w_6f26b5682a68dbd60';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateSqlIdMapTest:: |
protected | property | The database connection. | |
MigrateSqlIdMapTest:: |
protected | property | The destination IDs. | |
MigrateSqlIdMapTest:: |
protected | property | The source IDs. | |
MigrateSqlIdMapTest:: |
public | function | Data provider for testErrorCount(). | |
MigrateSqlIdMapTest:: |
public | function | Data provider for getHighestId(). | |
MigrateSqlIdMapTest:: |
public | function | Data provider for testGetHighestIdInvalid(). | |
MigrateSqlIdMapTest:: |
protected | function | Sets defaults for SQL ID map plugin tests. | |
MigrateSqlIdMapTest:: |
public | function | Data provider for testLookupDestinationIdMapping(). | |
MigrateSqlIdMapTest:: |
public | function | Data provider for testLookupSourceIdMapping(). | |
MigrateSqlIdMapTest:: |
protected | function |
Overrides UnitTestCase:: |
|
MigrateSqlIdMapTest:: |
protected | function | Setup a database with the given rows. | |
MigrateSqlIdMapTest:: |
public | function | Tests the clear messages method. | |
MigrateSqlIdMapTest:: |
public | function | Tests currentDestination() and currentSource(). | |
MigrateSqlIdMapTest:: |
public | function | Tests the destroy method. | |
MigrateSqlIdMapTest:: |
public | function | Performs error count test with a given number of error rows. | |
MigrateSqlIdMapTest:: |
public | function | Tests getHighestId method. | |
MigrateSqlIdMapTest:: |
public | function | Tests getHighestId method with invalid data. | |
MigrateSqlIdMapTest:: |
public | function | Tests the getRowBySource method. | |
MigrateSqlIdMapTest:: |
public | function | Tests the imported count method. | |
MigrateSqlIdMapTest:: |
public | function | Tests all the iterator methods in one swing. | |
MigrateSqlIdMapTest:: |
public | function | Performs destination ID test on source and destination fields. | |
MigrateSqlIdMapTest:: |
public | function | Performs the source ID test on source and destination fields. | |
MigrateSqlIdMapTest:: |
public | function | Tests the SQL ID map message count method by counting and saving messages. | |
MigrateSqlIdMapTest:: |
public | function | Tests the SQL ID map save message method. | |
MigrateSqlIdMapTest:: |
public | function | Tests the number of processed source rows. | |
MigrateSqlIdMapTest:: |
public | function | Tests the SQL ID map set message method. | |
MigrateSqlIdMapTest:: |
public | function | Performs the update count test with a given number of update rows. | |
MigrateSqlIdMapTest:: |
public | function | Data provider for testUpdateCount(). | |
MigrateTestCase:: |
protected | property | The migration ID map. | |
MigrateTestCase:: |
protected | property | Local store for mocking setStatus()/getStatus(). | |
MigrateTestCase:: |
protected | function | Generates a table schema from a row. | |
MigrateTestCase:: |
protected | function | Gets an SQLite database connection object for use in tests. | |
MigrateTestCase:: |
protected | function | Retrieves a mocked migration. | |
MigrateTestCase:: |
protected | function | Gets the value on a row for a given key. | |
MigrateTestCase:: |
public | function | Tests a query. | |
MigrateTestCase:: |
protected | function | Asserts tested values during test retrieval. | |
PhpUnitWarnings:: |
private static | property | Deprecation warnings from PHPUnit to raise with @trigger_error(). | |
PhpUnitWarnings:: |
public | function | Converts PHPUnit deprecation warnings to E_USER_DEPRECATED. | |
SmartSqlTest:: |
protected | function |
Creates a test SQL ID map plugin. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
private | function |
Retrieves the contents of an ID map. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
protected | function |
Saves a single ID mapping row in the database. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests the getQualifiedMapTable method with a prefixed database. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests the getRowByDestination method. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests the getRowsNeedingUpdate method for rows that need an update. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests lookupDestinationIds(). Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests the delayed creation of the "map" and "message" migrate tables. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests prepareUpdate(). Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests the ID mapping method. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlTest:: |
public | function |
Tests setting a row source_row_status to STATUS_NEEDS_UPDATE. Overrides MigrateSqlIdMapTest:: |
|
SmartSqlWithLongPluginIdTest:: |
protected | property |
The expected map table name. Overrides SmartSqlTest:: |
|
SmartSqlWithLongPluginIdTest:: |
protected | property |
The expected message table name. Overrides SmartSqlTest:: |
|
SmartSqlWithLongPluginIdTest:: |
protected | property |
The expected map table name with "prefix" as prefix. Overrides SmartSqlTest:: |
|
SmartSqlWithLongPluginIdTest:: |
protected | property |
The migration configuration, initialized to set the ID and destination IDs. Overrides SmartSqlTest:: |
|
UnitTestCase:: |
protected | property | The random generator. | |
UnitTestCase:: |
protected | property | The app root. | 1 |
UnitTestCase:: |
protected | function | Asserts if two arrays are equal by sorting them first. | |
UnitTestCase:: |
protected | function | Returns a stub class resolver. | |
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed array. | |
UnitTestCase:: |
public | function | Returns a stub config storage that returns the supplied configuration. | |
UnitTestCase:: |
protected | function | Sets up a container with a cache tags invalidator. | |
UnitTestCase:: |
protected | function | Gets the random generator for the utility methods. | |
UnitTestCase:: |
public | function | Returns a stub translation manager that just returns the passed string. | |
UnitTestCase:: |
public | function | Generates a unique random string containing letters and numbers. | |
UnitTestCase:: |
public static | function |