Commit 6f2c0ee4 authored by webchick's avatar webchick

Issue #2080309 by aaronott: Remove Unused local variable from...

Issue #2080309 by aaronott: Remove Unused local variable  from /core/modules/system/lib/Drupal/system/Tests/Database/AlterTest.php.
parent d26b4a94
......@@ -31,14 +31,9 @@ function testSimpleAlter() {
$query->addField('test', 'age', 'age');
$query->addTag('database_test_alter_add_range');
$result = $query->execute();
$num_records = 0;
foreach ($result as $record) {
$num_records++;
}
$result = $query->execute()->fetchAll();
$this->assertEqual($num_records, 2, 'Returned the correct number of rows.');
$this->assertEqual(count($result), 2, 'Returned the correct number of rows.');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment