diff --git a/core/modules/migrate/tests/src/Unit/process/SubProcessTest.php b/core/modules/migrate/tests/src/Unit/process/SubProcessTest.php
index dfcdec3..17011f5 100644
--- a/core/modules/migrate/tests/src/Unit/process/SubProcessTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/SubProcessTest.php
@@ -31,18 +31,20 @@ class SubProcessTest extends MigrateTestCase {
 
   /**
    * Tests the sub_process process plugin.
+   *
+   * @dataProvider providerTestSubProcess
    */
-  public function testSubProcess() {
+  public function testSubProcess($value, $configuration = [], $source_configuration = []) {
     $migration = $this->getMigration();
     // Set up the properties for the sub_process.
-    $configuration = [
+    $configuration += [
       'process' => [
         'foo' => 'source_foo',
         'id' => 'source_id',
       ],
       'key' => '@id',
     ];
-    $plugin = new SubProcess($configuration, 'sub_process', []);
+    $plugin = new SubProcess($configuration, 'sub_process', [], $source_configuration);
     // Manually create the plugins. Migration::getProcessPlugins does this
     // normally but the plugin system is not available.
     foreach ($configuration['process'] as $destination => $source) {
@@ -59,24 +61,29 @@ public function testSubProcess() {
     $event_dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
     $migrate_executable = new MigrateExecutable($migration, $this->getMock('Drupal\migrate\MigrateMessageInterface'), $event_dispatcher);
 
-    // The current value of the pipeline.
-    $current_value = [
-      [
-        'source_foo' => 'test',
-        'source_id' => 42,
-      ],
-    ];
     // This is not used but the interface requires it, so create an empty row.
     $row = new Row();
 
     // After transformation, check to make sure that source_foo and source_id's
     // values ended up in the proper destinations, and that the value of the
     // key (@id) is the same as the destination ID (42).
-    $new_value = $plugin->transform($current_value, $migrate_executable, $row, 'test');
-    $this->assertSame(count($new_value), 1);
-    $this->assertSame(count($new_value[42]), 2);
+    $new_value = $plugin->transform($value, $migrate_executable, $row, 'test');
+    $this->assertCount(1, $new_value);
+    $this->assertCount(2, $new_value[42]);
     $this->assertSame($new_value[42]['foo'], 'test');
     $this->assertSame($new_value[42]['id'], 42);
   }
 
+  /**
+   * Data provider for testSubProcess().
+   */
+  public function providerTestSubProcess() {
+    return [
+      'no config' => [[['source_foo' => 'test', 'source_id' => 42]]],
+      'with config' => [[['source_id' => 42]], ['source_foo' => 'test']],
+      'with source config' => [[['source_foo' => 'test']], [], ['source_id' => 42]],
+      'with both configs' => [[[]], ['source_foo' => 'test'], ['source_id' => 42]],
+    ];
+  }
+
 }
