3 namespace Drupal\Tests\config_translation\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests the i18nProfileField source plugin.
10 * @covers \Drupal\config_translation\Plugin\migrate\source\d6\I18nProfileField
11 * @group migrate_drupal
14 class I18nProfileFieldTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['config_translation', 'migrate_drupal', 'user'];
24 public function providerSource() {
26 $test[0]['source_data'] = [
30 'title' => 'I love migrations',
31 'name' => 'profile_love_migrations',
37 'objectid' => 'profile_love_migrations',
39 'property' => 'title',
43 'objectid' => 'profile_love_migrations',
45 'property' => 'explanation',
51 'translation' => "J'aime les migrations.",
56 'translation' => 'Si vous cochez cette case, vous aimez les migrations.',
61 $test[0]['expected_results'] = [
63 'property' => 'title',
64 'translation' => "J'aime les migrations.",
67 'name' => 'profile_love_migrations',
70 'property' => 'explanation',
71 'translation' => 'Si vous cochez cette case, vous aimez les migrations.',
74 'name' => 'profile_love_migrations',