From 0432bc8616c08b411ab4c7cdf9ca53d2812476f2 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Tue, 3 Dec 2013 12:30:12 +0000
Subject: [PATCH] Issue #2080113 by deneo, rhm50: Remove Unused local variable
$plugin_id from
/core/modules/system/lib/Drupal/system/Tests/Plugin/CacheDecoratorLanguageTest.php.
---
.../system/Tests/Plugin/CacheDecoratorLanguageTest.php | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/core/modules/system/lib/Drupal/system/Tests/Plugin/CacheDecoratorLanguageTest.php b/core/modules/system/lib/Drupal/system/Tests/Plugin/CacheDecoratorLanguageTest.php
index 34e388967086..10de2a8accc0 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Plugin/CacheDecoratorLanguageTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Plugin/CacheDecoratorLanguageTest.php
@@ -65,7 +65,7 @@ public function setUp() {
$languages[$langcode] = language_save($language);
// Set up translations for each mock block label.
$custom_strings = array();
- foreach ($this->mockBlockExpectedDefinitions as $plugin_id => $definition) {
+ foreach ($this->mockBlockExpectedDefinitions as $definition) {
$custom_strings[$definition['label']] = $langcode . ' ' . $definition['label'];
}
$this->addCustomTranslations($langcode, array('' => $custom_strings));
@@ -80,7 +80,7 @@ public function setUp() {
public function testCacheDecoratorLanguage() {
$languages = $this->languages;
$this->drupalGet('plugin_definition_test');
- foreach ($this->mockBlockExpectedDefinitions as $plugin_id => $definition) {
+ foreach ($this->mockBlockExpectedDefinitions as $definition) {
// Find our source text.
$this->assertText($definition['label']);
}
@@ -88,7 +88,7 @@ public function testCacheDecoratorLanguage() {
$url = $langcode . '/plugin_definition_test';
// For each language visit the language specific version of the page again.
$this->drupalGet($url);
- foreach ($this->mockBlockExpectedDefinitions as $plugin_id => $definition) {
+ foreach ($this->mockBlockExpectedDefinitions as $definition) {
// Find our provided translations.
$label = $langcode . ' ' . $definition['label'];
$this->assertText($label);
@@ -110,13 +110,13 @@ public function testCacheDecoratorLanguage() {
}
// Change the translations for the german language and recheck strings.
$custom_strings = array();
- foreach ($this->mockBlockExpectedDefinitions as $plugin_id => $definition) {
+ foreach ($this->mockBlockExpectedDefinitions as $definition) {
$custom_strings[$definition['label']] = $definition['label'] . ' de';
}
$this->addCustomTranslations('de', array('' => $custom_strings));
$this->writeCustomTranslations();
$this->drupalGet('de/plugin_definition_test');
- foreach ($this->mockBlockExpectedDefinitions as $plugin_id => $definition) {
+ foreach ($this->mockBlockExpectedDefinitions as $definition) {
// Find our provided translations.
$label = $definition['label'] . ' de';
$this->assertText($label);
--
GitLab