function EmptyStatementTest::testEmpty in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php \Drupal\Tests\Core\Database\EmptyStatementTest::testEmpty()
Tests that the empty result set behaves as empty.
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ EmptyStatementTest.php, line 23 - Contains \Drupal\Tests\Core\Database\EmptyStatementTest.
Class
- EmptyStatementTest
- Tests the empty pseudo-statement class.
Namespace
Drupal\Tests\Core\DatabaseCode
function testEmpty() {
$result = new StatementEmpty();
$this
->assertTrue($result instanceof StatementInterface, 'Class implements expected interface');
$this
->assertNull($result
->fetchObject(), 'Null result returned.');
}