Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / field / tests / src / Kernel / Plugin / migrate / source / d6 / FieldInstanceOptionTranslationTest.php
diff --git a/web/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceOptionTranslationTest.php b/web/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceOptionTranslationTest.php
new file mode 100644 (file)
index 0000000..ee65488
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+namespace Drupal\Tests\field\Kernel\Plugin\migrate\source\d6;
+
+/**
+ * Tests the field instance option translation source plugin.
+ *
+ * @covers \Drupal\field\Plugin\migrate\source\d6\FieldInstanceOptionTranslation
+ * @group migrate_drupal
+ */
+class FieldInstanceOptionTranslationTest extends FieldOptionTranslationTest {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['field', 'migrate_drupal'];
+
+  /**
+   * {@inheritdoc}
+   */
+  public function providerSource() {
+    $test = parent::providerSource();
+
+    // FieldInstanceOptionTranslation extends FieldOptionTranslation so the
+    // same test can be used with the addition of the 'type' field to the
+    // output.
+    $test[0]['expected_results'][0]['type'] = 'text';
+    $test[0]['expected_results'][1]['type'] = 'text';
+    $test[0]['expected_results'][2]['type'] = 'number_integer';
+    $test[0]['expected_results'][3]['type'] = 'number_integer';
+    return $test;
+  }
+
+}