3 namespace Drupal\Tests\node\Kernel\Plugin\migrate\source\d7;
6 * Tests D7 node translation source plugin.
8 * @covers \Drupal\node\Plugin\migrate\source\d7\Node
12 class NodeTranslationTest extends NodeTest {
17 public static $modules = ['node', 'user', 'migrate_drupal'];
22 public function providerSource() {
23 // Get the source data from parent.
24 $tests = parent::providerSource();
26 // The expected results.
27 $tests[0]['expected_data'] = [
34 'title' => 'node title 5 (title_field)',
38 'created' => 1279292908,
39 'changed' => 1279310993,
45 // Node revision fields.
47 'timestamp' => 1279310993,
50 'value' => 'fr - body 6',
52 'format' => 'filtered_html',
58 // Do an automatic count.
59 $tests[0]['expected_count'] = NULL;
61 // Set up source plugin configuration.
62 $tests[0]['configuration'] = [
63 'translations' => TRUE,