From 8dd60810432d0baeb3dcb0fa672a9a4b411d9f02 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Fri, 26 Sep 2014 11:50:17 +0100
Subject: [PATCH] Issue #2342237 by martin107: Fixed Cannot use the same
 variable in the inner and outer foreach loop ( $label ).

---
 .../src/Tests/ContentTranslationWorkflowsTest.php               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
index ccb3f809a73f..1c6ff2113c4a 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
@@ -86,7 +86,7 @@ function testWorkflows() {
     // Check that translation permissions governate the associated operations.
     $ops = array('create' => t('Add'), 'update' => t('Edit'), 'delete' => t('Delete'));
     $translations_path = $this->entity->getSystemPath('drupal:content-translation-overview');
-    foreach ($ops as $current_op => $label) {
+    foreach ($ops as $current_op => $item) {
       $user = $this->drupalCreateUser(array($this->getTranslatePermission(), "$current_op content translations"));
       $this->drupalLogin($user);
       $this->drupalGet($translations_path);
-- 
GitLab