You are here

class SmartSqlWithLongPluginIdTest in Smart SQL ID Map 1.1.x

Same name and namespace in other branches
  1. 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

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_map
View 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

Namesort descending Modifiers Type Description Overrides
MigrateSqlIdMapTest::$database protected property The database connection.
MigrateSqlIdMapTest::$destinationIds protected property The destination IDs.
MigrateSqlIdMapTest::$sourceIds protected property The source IDs.
MigrateSqlIdMapTest::errorCountDataProvider public function Data provider for testErrorCount().
MigrateSqlIdMapTest::getHighestIdDataProvider public function Data provider for getHighestId().
MigrateSqlIdMapTest::getHighestIdInvalidDataProvider public function Data provider for testGetHighestIdInvalid().
MigrateSqlIdMapTest::idMapDefaults protected function Sets defaults for SQL ID map plugin tests.
MigrateSqlIdMapTest::lookupDestinationIdMappingDataProvider public function Data provider for testLookupDestinationIdMapping().
MigrateSqlIdMapTest::lookupSourceIdMappingDataProvider public function Data provider for testLookupSourceIdMapping().
MigrateSqlIdMapTest::setUp protected function Overrides UnitTestCase::setUp
MigrateSqlIdMapTest::setupRows protected function Setup a database with the given rows.
MigrateSqlIdMapTest::testClearMessages public function Tests the clear messages method.
MigrateSqlIdMapTest::testCurrentDestinationAndSource public function Tests currentDestination() and currentSource().
MigrateSqlIdMapTest::testDestroy public function Tests the destroy method.
MigrateSqlIdMapTest::testErrorCount public function Performs error count test with a given number of error rows.
MigrateSqlIdMapTest::testGetHighestId public function Tests getHighestId method.
MigrateSqlIdMapTest::testGetHighestIdInvalid public function Tests getHighestId method with invalid data.
MigrateSqlIdMapTest::testGetRowBySource public function Tests the getRowBySource method.
MigrateSqlIdMapTest::testImportedCount public function Tests the imported count method.
MigrateSqlIdMapTest::testIterators public function Tests all the iterator methods in one swing.
MigrateSqlIdMapTest::testLookupDestinationIdMapping public function Performs destination ID test on source and destination fields.
MigrateSqlIdMapTest::testLookupSourceIdMapping public function Performs the source ID test on source and destination fields.
MigrateSqlIdMapTest::testMessageCount public function Tests the SQL ID map message count method by counting and saving messages.
MigrateSqlIdMapTest::testMessageSave public function Tests the SQL ID map save message method.
MigrateSqlIdMapTest::testProcessedCount public function Tests the number of processed source rows.
MigrateSqlIdMapTest::testSetMessage public function Tests the SQL ID map set message method.
MigrateSqlIdMapTest::testUpdateCount public function Performs the update count test with a given number of update rows.
MigrateSqlIdMapTest::updateCountDataProvider public function Data provider for testUpdateCount().
MigrateTestCase::$idMap protected property The migration ID map.
MigrateTestCase::$migrationStatus protected property Local store for mocking setStatus()/getStatus().
MigrateTestCase::createSchemaFromRow protected function Generates a table schema from a row.
MigrateTestCase::getDatabase protected function Gets an SQLite database connection object for use in tests.
MigrateTestCase::getMigration protected function Retrieves a mocked migration.
MigrateTestCase::getValue protected function Gets the value on a row for a given key.
MigrateTestCase::queryResultTest public function Tests a query.
MigrateTestCase::retrievalAssertHelper protected function Asserts tested values during test retrieval.
PhpUnitWarnings::$deprecationWarnings private static property Deprecation warnings from PHPUnit to raise with @trigger_error().
PhpUnitWarnings::addWarning public function Converts PHPUnit deprecation warnings to E_USER_DEPRECATED.
SmartSqlTest::getIdMap protected function Creates a test SQL ID map plugin. Overrides MigrateSqlIdMapTest::getIdMap
SmartSqlTest::getIdMapContents private function Retrieves the contents of an ID map. Overrides MigrateSqlIdMapTest::getIdMapContents
SmartSqlTest::saveMap protected function Saves a single ID mapping row in the database. Overrides MigrateSqlIdMapTest::saveMap
SmartSqlTest::testGetQualifiedMapTablePrefix public function Tests the getQualifiedMapTable method with a prefixed database. Overrides MigrateSqlIdMapTest::testGetQualifiedMapTablePrefix
SmartSqlTest::testGetRowByDestination public function Tests the getRowByDestination method. Overrides MigrateSqlIdMapTest::testGetRowByDestination
SmartSqlTest::testGetRowsNeedingUpdate public function Tests the getRowsNeedingUpdate method for rows that need an update. Overrides MigrateSqlIdMapTest::testGetRowsNeedingUpdate
SmartSqlTest::testLookupDestinationIds public function Tests lookupDestinationIds(). Overrides MigrateSqlIdMapTest::testLookupDestinationIds
SmartSqlTest::testMapTableCreation public function Tests the delayed creation of the "map" and "message" migrate tables. Overrides MigrateSqlIdMapTest::testMapTableCreation
SmartSqlTest::testPrepareUpdate public function Tests prepareUpdate(). Overrides MigrateSqlIdMapTest::testPrepareUpdate
SmartSqlTest::testSaveIdMapping public function Tests the ID mapping method. Overrides MigrateSqlIdMapTest::testSaveIdMapping
SmartSqlTest::testSetUpdate public function Tests setting a row source_row_status to STATUS_NEEDS_UPDATE. Overrides MigrateSqlIdMapTest::testSetUpdate
SmartSqlWithLongPluginIdTest::$expectedMapTableName protected property The expected map table name. Overrides SmartSqlTest::$expectedMapTableName
SmartSqlWithLongPluginIdTest::$expectedMessageTableName protected property The expected message table name. Overrides SmartSqlTest::$expectedMessageTableName
SmartSqlWithLongPluginIdTest::$expectedPrefixedMapTableName protected property The expected map table name with "prefix" as prefix. Overrides SmartSqlTest::$expectedPrefixedMapTableName
SmartSqlWithLongPluginIdTest::$migrationConfiguration protected property The migration configuration, initialized to set the ID and destination IDs. Overrides SmartSqlTest::$migrationConfiguration
UnitTestCase::$randomGenerator protected property The random generator.
UnitTestCase::$root protected property The app root. 1
UnitTestCase::assertArrayEquals Deprecated protected function Asserts if two arrays are equal by sorting them first.
UnitTestCase::getClassResolverStub protected function Returns a stub class resolver.
UnitTestCase::getConfigFactoryStub public function Returns a stub config factory that behaves according to the passed array.
UnitTestCase::getConfigStorageStub public function Returns a stub config storage that returns the supplied configuration.
UnitTestCase::getContainerWithCacheTagsInvalidator protected function Sets up a container with a cache tags invalidator.
UnitTestCase::getRandomGenerator protected function Gets the random generator for the utility methods.
UnitTestCase::getStringTranslationStub public function Returns a stub translation manager that just returns the passed string.
UnitTestCase::randomMachineName public function Generates a unique random string containing letters and numbers.
UnitTestCase::setUpBeforeClass public static function