3 namespace Drupal\Tests\block\Kernel\Plugin\migrate\source\d7;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests i18n block source plugin.
10 * @covers \Drupal\block\Plugin\migrate\source\d7\BlockTranslation
12 * @group content_translation
14 class BlockTranslationTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['block', 'migrate_drupal'];
24 public function providerSource() {
27 $tests[0]['source_data']['block'] = [
35 'region' => 'content',
46 'delta' => 'navigation',
50 'region' => 'sidebar_first',
54 'title' => 'Navigation',
59 $tests[0]['source_data']['block_role'] = [
76 $tests[0]['source_data']['i18n_string'] = [
79 'textgroup' => 'block',
81 'objectid' => 'navigation',
83 'property' => 'title',
89 $tests[0]['source_data']['locales_target'] = [
92 'translation' => 'fr - Navigation',
99 $tests[0]['source_data']['role'] = [
102 'name' => 'authenticated user',
105 $tests[0]['source_data']['system'] = [
107 'filename' => 'modules/system/system.module',
114 'schema_version' => '7055',
119 // The expected results.
120 $tests[0]['expected_data'] = [
123 'module' => 'system',
124 'delta' => 'navigation',
128 'region' => 'sidebar_first',
132 'title' => 'Navigation',
136 'translation' => 'fr - Navigation',