function EmptyStatementTest::testEmptyFetchAll
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php \Drupal\Tests\Core\Database\EmptyStatementTest::testEmptyFetchAll()
Tests that the empty result set mass-fetches in an expected way.
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ EmptyStatementTest.php, line 40
Class
- EmptyStatementTest
- Tests the empty pseudo-statement class.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testEmptyFetchAll() {
$result = new StatementEmpty();
$this->assertEquals([], $result->fetchAll(), 'Empty array returned from empty result set.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.