diff --git a/core/modules/system/tests/src/Kernel/System/SystemGetInfoTest.php b/core/modules/system/tests/src/Kernel/System/SystemGetInfoTest.php
new file mode 100644
index 0000000000..f0bb9e74c0
--- /dev/null
+++ b/core/modules/system/tests/src/Kernel/System/SystemGetInfoTest.php
@@ -0,0 +1,31 @@
+<?php
+
+namespace Drupal\Tests\system\Kernel\System;
+
+use Drupal\KernelTests\KernelTestBase;
+
+/**
+ * Tests system_get_info().
+ *
+ * @group system
+ */
+class SystemGetInfoTest extends KernelTestBase {
+
+  public static $modules = ['system'];
+
+  /**
+   * Tests system_get_info().
+   */
+  public function testSystemGetInfo() {
+    $this->assertEquals('System', system_get_info('module', 'system')['name']);
+    // The User module is not installed so system_get_info() should return
+    // an empty array.
+    $this->assertEquals([], system_get_info('module', 'user'));
+
+    // Install the User module and check system_get_info() returns the correct
+    // information.
+    $this->container->get('module_installer')->install(['user']);
+    $this->assertEquals('User', system_get_info('module', 'user')['name']);
+  }
+
+}
