Skip to content
Snippets Groups Projects
Commit 6f2c0ee4 authored by Angie Byron's avatar Angie Byron
Browse files

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
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment