Issue #2080305 by aaronott: Remove Unused local variable from /core/modules/system/lib/Drupal/system/Tests/Database/FetchTest.php.
parent
84cbbba81f
commit
a65cbe78a7
|
@ -126,7 +126,6 @@ class FetchTest extends DatabaseTestBase {
|
||||||
* Confirms that we can fetch an entire column of a result set at once.
|
* Confirms that we can fetch an entire column of a result set at once.
|
||||||
*/
|
*/
|
||||||
function testQueryFetchCol() {
|
function testQueryFetchCol() {
|
||||||
$records = array();
|
|
||||||
$result = db_query('SELECT name FROM {test} WHERE age > :age', array(':age' => 25));
|
$result = db_query('SELECT name FROM {test} WHERE age > :age', array(':age' => 25));
|
||||||
$column = $result->fetchCol();
|
$column = $result->fetchCol();
|
||||||
$this->assertIdentical(count($column), 3, 'fetchCol() returns the right number of records.');
|
$this->assertIdentical(count($column), 3, 'fetchCol() returns the right number of records.');
|
||||||
|
|
Loading…
Reference in New Issue