Skip to content
Snippets Groups Projects
Commit 3832bf77 authored by Jess's avatar Jess
Browse files

Issue #2855267 by daffie: "Larry" should not use $GLOBALS in...

Issue #2855267 by daffie: "Larry" should not use $GLOBALS in Drupal\KernelTests\Core\Database\UpdateComplexTest
parent 4b325ae0
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment