3 namespace Drupal\Tests\language\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests menu source plugin.
10 * @covers \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettings
14 class LanguageContentSettingsTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['language', 'migrate_drupal'];
24 public function providerSource() {
28 $tests[0]['source_data']['node_type'] = [
33 'description' => 'An <em>article</em>, content type.',
36 'title_label' => 'Title',
38 'body_label' => 'Body',
39 'min_word_count' => 0,
43 'orig_type' => 'story',
49 'description' => 'Company node type',
52 'title_label' => 'Name',
54 'body_label' => 'Description',
55 'min_word_count' => 0,
59 'orig_type' => 'company',
63 foreach ($tests[0]['source_data']['node_type'] as $node_type) {
64 $tests[0]['expected_data'][] = [
65 'type' => $node_type['type'],
66 'language_content_type' => NULL,
67 'i18n_lock_node' => 0,