diff --git a/core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php b/core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php
index b79eb36..3c43f18 100644
--- a/core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php
+++ b/core/modules/system/src/Tests/DrupalKernel/DrupalKernelTest.php
@@ -71,7 +71,7 @@ protected function getTestKernel(Request $request, array $modules_enabled = NULL
   /**
    * Tests DIC compilation.
    */
-  function testCompileDIC() {
+  public function testCompileDIC() {
     // @todo: write a memory based storage backend for testing.
     $modules_enabled = array(
       'system' => 'system',
