From 3832bf77a10a323de9877c77f699915b0dc00917 Mon Sep 17 00:00:00 2001
From: xjm <xjm@65776.no-reply.drupal.org>
Date: Thu, 23 Feb 2017 13:53:50 +0000
Subject: [PATCH] Issue #2855267 by daffie: "Larry" should not use $GLOBALS in
 Drupal\KernelTests\Core\Database\UpdateComplexTest

---
 .../Drupal/KernelTests/Core/Database/UpdateComplexTest.php      | 2 --
 1 file changed, 2 deletions(-)

diff --git a/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php b/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php
index 74eb0f1f03a3..c2946d5c3968 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php
@@ -89,7 +89,6 @@ function testLikeConditionUpdate() {
    */
   function testUpdateExpression() {
     $before_age = db_query('SELECT age FROM {test} WHERE name = :name', array(':name' => 'Ringo'))->fetchField();
-    $GLOBALS['larry_test'] = 1;
     $num_updated = db_update('test')
       ->condition('name', 'Ringo')
       ->fields(array('job' => 'Musician'))
@@ -104,7 +103,6 @@ function testUpdateExpression() {
     $this->assertEqual($person->name, 'Ringo', 'Name set correctly.');
     $this->assertEqual($person->age, $before_age + 4, 'Age set correctly.');
     $this->assertEqual($person->job, 'Musician', 'Job set correctly.');
-    $GLOBALS['larry_test'] = 0;
   }
 
   /**
-- 
GitLab