3 namespace Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\d7;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests the variable source plugin.
10 * @covers \Drupal\migrate_drupal\Plugin\migrate\source\d7\VariableTranslation
12 * @group migrate_drupal
14 class VariableTranslationTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['migrate_drupal'];
24 public function providerSource() {
28 $tests[0]['source_data']['variable_store'] = [
30 'realm' => 'language',
32 'name' => 'site_slogan',
33 'value' => 'fr - site slogan',
37 'realm' => 'language',
39 'name' => 'user_mail_status_blocked_subject',
40 'value' => 'fr - BEGONE!',
44 'realm' => 'language',
46 'name' => 'site_slogan',
47 'value' => 's:16:"is - site slogan";',
52 // The expected results.
53 $tests[0]['expected_data'] = [
56 'site_slogan' => 'fr - site slogan',
57 'user_mail_status_blocked_subject' => 'fr - BEGONE!',
61 'site_slogan' => 'is - site slogan',
65 // The expected count.
66 $tests[0]['expected_count'] = NULL;
68 // The migration configuration.
69 $tests[0]['configuration']['variables'] = [
71 'user_mail_status_blocked_subject',