diff --git a/core/lib/Drupal/Core/Config/ConfigSync.php b/core/lib/Drupal/Core/Config/ConfigSync.php
index b7c3c36..2da8679 100644
--- a/core/lib/Drupal/Core/Config/ConfigSync.php
+++ b/core/lib/Drupal/Core/Config/ConfigSync.php
@@ -232,7 +232,7 @@ public function doSync() {
   protected function doConfigSync() {
     $factory = drupal_container()->get('config.factory');
     foreach (array('delete', 'create', 'change') as $op) {
-      foreach ($this->getUnprocessed($op) as $key => $name) {
+      foreach ($this->getUnprocessed($op) as $name) {
         $config = new Config($name, $this->targetStorage);
         if ($op == 'delete') {
           $config->delete();
@@ -243,7 +243,7 @@ protected function doConfigSync() {
           $config->save();
         }
         $factory->reset($name);
-        $this->setProcessed($op, $key);
+        $this->setProcessed($op, $name);
       }
     }
   }
@@ -261,7 +261,7 @@ protected function doSyncInvokeOwner() {
     // First pass deleted, then new, and lastly changed configuration, in order to
     // handle dependencies correctly.
     foreach (array('delete', 'create', 'change') as $op) {
-      foreach ($this->getUnprocessed($op) as $key => $name) {
+      foreach ($this->getUnprocessed($op) as $name) {
         // Call to the configuration entity's storage controller to handle the
         // configuration change.
         $handled_by_module = FALSE;
@@ -281,7 +281,7 @@ protected function doSyncInvokeOwner() {
           $handled_by_module = entity_get_controller($entity_type)->$method($name, $new_config, $old_config);
         }
         if (!empty($handled_by_module)) {
-          $this->setProcessed($op, $key);
+          $this->setProcessed($op, $name);
         }
       }
     }
diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/RegressionTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/RegressionTest.php
index f38b49f..4ad4417 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Database/RegressionTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Database/RegressionTest.php
@@ -12,13 +12,6 @@
  */
 class RegressionTest extends DatabaseTestBase {
 
-  /**
-   * Modules to enable.
-   *
-   * @var array
-   */
-  public static $modules = array('node');
-
   public static function getInfo() {
     return array(
       'name' => 'Regression tests',
