diff --git a/core/modules/simpletest/lib/Drupal/simpletest/Tests/ParentProfileTest.php b/core/modules/simpletest/lib/Drupal/simpletest/Tests/ParentProfileTest.php
new file mode 100644
index 0000000..ec285e4
--- /dev/null
+++ b/core/modules/simpletest/lib/Drupal/simpletest/Tests/ParentProfileTest.php
@@ -0,0 +1,41 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\simpletest\Tests\ParentProfileTest.
+ */
+
+namespace Drupal\simpletest\Tests;
+
+use Drupal\Component\Utility\Settings;
+use Drupal\Core\Extension\ExtensionDiscovery;
+use Drupal\simpletest\DrupalUnitTestBase;
+
+/**
+ * Tests installation profile inheritance in tests.
+ */
+class ParentProfileTest extends DrupalUnitTestBase {
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Test parent profile',
+      'description' => 'Tests installation profile inheritance in tests.',
+      'group' => 'SimpleTest',
+    );
+  }
+
+  /**
+   * Tests that the test runner's profile is inherited.
+   */
+  function testParentProfile() {
+    $settings = Settings::getAll();
+    $settings['test_parent_profile'] = 'testing';
+    $settings['install_profile'] = 'minimal';
+    new Settings($settings);
+
+    $discovery = new ExtensionDiscovery();
+    $modules = $discovery->scan('module');
+    $this->assertTrue(isset($modules['drupal_system_listing_compatible_test']));
+  }
+
+}
