summaryrefslogtreecommitdiffstats
path: root/core/modules/content_translation/tests
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/content_translation/tests')
-rw-r--r--core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php60
-rw-r--r--core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php72
2 files changed, 0 insertions, 132 deletions
diff --git a/core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php b/core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php
deleted file mode 100644
index 2612d92..0000000
--- a/core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace Drupal\Tests\content_translation\Kernel\Migrate\d6;
-
-use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
-
-/**
- * Tests migration of i18n block translations.
- *
- * @group migrate_drupal_6
- */
-class MigrateBlockContentTranslationTest extends MigrateDrupal6TestBase {
-
- /**
- * {@inheritdoc}
- */
- public static $modules = [
- 'aggregator',
- 'book',
- 'block',
- 'comment',
- 'forum',
- 'views',
- 'block_content',
- 'content_translation',
- 'language',
- 'statistics',
- 'taxonomy',
- ];
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->installConfig(['block']);
- $this->installConfig(['block_content']);
- $this->installEntitySchema('block_content');
-
- $this->executeMigrations([
- 'd6_filter_format',
- 'block_content_type',
- 'block_content_body_field',
- 'd6_custom_block',
- 'd6_user_role',
- 'd6_block',
- 'd6_block_translation',
- ]);
- block_rebuild();
- }
-
- /**
- * Tests the migration of block title translation.
- */
- public function testBlockContentTranslation() {
- $config = $this->container->get('language_manager')->getLanguageConfigOverride('zu', 'block.block.user_1');
- $this->assertSame('zu - Test Title 02', $config->get('settings.label'));
- }
-
-}
diff --git a/core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php b/core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php
deleted file mode 100644
index 4a0e893..0000000
--- a/core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-namespace Drupal\Tests\content_translation\Kernel\Plugin\migrate\source\d6;
-
-use Drupal\Tests\block\Kernel\Plugin\migrate\source\BlockTest;
-
-/**
- * Tests i18n block source plugin.
- *
- * @covers \Drupal\content_translation\Plugin\migrate\source\d6\BlockTranslation
- *
- * @group content_translation
- */
-class BlockTranslationTest extends BlockTest {
-
- /**
- * {@inheritdoc}
- */
- public static $modules = ['content_translation'];
-
- /**
- * {@inheritdoc}
- */
- public function providerSource() {
- // Test data is the same as BlockTest, but with the addition of i18n_blocks.
- $tests = parent::providerSource();
-
- // The source data.
- $tests[0]['source_data']['i18n_blocks'] = [
- [
- 'ibid' => 1,
- 'module' => 'block',
- 'delta' => '1',
- 'type' => 0,
- 'language' => 'fr',
- ],
- [
- 'ibid' => 2,
- 'module' => 'block',
- 'delta' => '2',
- 'type' => 0,
- 'language' => 'zu',
- ],
- ];
-
- // The expected results.
- $tests[0]['expected_data'] = [
- [
- 'bid' => 1,
- 'module' => 'block',
- 'delta' => '1',
- 'title' => 'Test Title 01',
- 'ibid' => 1,
- 'type' => '0',
- 'language' => 'fr',
- ],
- [
- 'bid' => 2,
- 'module' => 'block',
- 'delta' => '2',
- 'theme' => 'garland',
- 'title' => 'Test Title 02',
- 'ibid' => 2,
- 'type' => '0',
- 'language' => 'zu',
- ],
- ];
-
- return $tests;
- }
-
-}