Tests that the empty result set mass-fetches in an expected way.
File
- drupal/core/modules/system/lib/Drupal/system/Tests/Database/EmptyStatementTest.php, line 53
- Definition of Drupal\system\Tests\Database\EmptyStatementTest.
Class
- EmptyStatementTest
- Tests the empty pseudo-statement class.
Namespace
Drupal\system\Tests\Database
Code
function testEmptyFetchAll() {
$result = new StatementEmpty();
$this
->assertEqual($result
->fetchAll(), array(), 'Empty array returned from empty result set.');
}