3 namespace Drupal\Tests\language\Kernel\Plugin\migrate\source\d7;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests menu source plugin.
10 * @covers \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettings
14 class LanguageContentSettingsTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['language', 'migrate_drupal'];
24 public function providerSource() {
28 $tests[0]['source_data']['node_type'] = [
32 'base' => 'node_content',
34 'description' => 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.',
35 'help' => 'Help text for articles',
37 'title_label' => 'Title',
42 'orig_type' => 'article',
46 'name' => 'Blog entry',
49 'description' => 'Use for multi-user blogs. Every user gets a personal blog.',
50 'help' => 'Blog away, good sir!',
52 'title_label' => 'Title',
57 'orig_type' => 'blog',
61 foreach ($tests[0]['source_data']['node_type'] as $node_type) {
62 $tests[0]['expected_data'][] = [
63 'type' => $node_type['type'],
64 'language_content_type' => NULL,
65 'i18n_lock_node' => 0,