3 namespace Drupal\Tests\block\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\block\Kernel\Plugin\migrate\source\BlockTest;
8 * Tests i18n block source plugin.
10 * @covers \Drupal\block\Plugin\migrate\source\d6\BlockTranslation
12 * @group content_translation
14 class BlockTranslationTest extends BlockTest {
19 public static $modules = ['block'];
24 public function providerSource() {
25 // Test data is the same as BlockTest, but with the addition of i18n_blocks.
26 $tests = parent::providerSource();
29 $tests[0]['source_data']['i18n_blocks'] = [
45 $tests[0]['source_data']['variables'] = [
47 'name' => 'default_theme',
48 'value' => 's:7:"garland";',
51 // The expected results.
52 $tests[0]['expected_data'] = [
57 'title' => 'Test Title 01',
61 'default_theme' => 'Garland',
68 'title' => 'Test Title 02',
72 'default_theme' => 'Garland',