function MigrateSqlIdMapTest::testLookupSourceIdMappingNonSqlCharacters
Same name in other branches
- 10 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::testLookupSourceIdMappingNonSqlCharacters()
Performs the source ID test on source and destination fields.
This performs same test as ::testLookupSourceIdMapping, except with source property names including spaces and special characters not allowed in SQL column aliases.
@dataProvider lookupSourceIdMappingDataProvider
Parameters
int $num_source_fields: Number of source fields to test.
int $num_destination_fields: Number of destination fields to test.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php, line 644
Class
- MigrateSqlIdMapTest
- Tests the SQL ID map plugin.
Namespace
Drupal\Tests\migrate\UnitCode
public function testLookupSourceIdMappingNonSqlCharacters($num_source_fields, $num_destination_fields) : void {
$source_id_property_prefix = '$ource id property * ';
$this->doTestLookupSourceIdMapping($num_source_fields, $num_destination_fields, $source_id_property_prefix);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.