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\ProfileFieldTranslation
11 * @group migrate_drupal
13 class ProfileFieldTranslationTest extends MigrateSqlSourceTestBase {
18 public static $modules = ['config_translation', 'migrate_drupal', 'user'];
23 public function providerSource() {
25 $test[0]['source_data'] = [
29 'title' => 'I love migrations',
30 'name' => 'profile_love_migrations',
36 'objectid' => 'profile_love_migrations',
38 'property' => 'title',
42 'objectid' => 'profile_love_migrations',
44 'property' => 'explanation',
50 'translation' => "J'aime les migrations.",
55 'translation' => 'Si vous cochez cette case, vous aimez les migrations.',
60 $test[0]['expected_results'] = [
62 'property' => 'title',
63 'translation' => "J'aime les migrations.",
66 'name' => 'profile_love_migrations',
69 'property' => 'explanation',
70 'translation' => 'Si vous cochez cette case, vous aimez les migrations.',
73 'name' => 'profile_love_migrations',