1 database_test.test DatabaseEmptyStatementTestCase::testEmpty()

Test that the empty result set behaves as empty.

File

core/modules/simpletest/tests/database_test.test, line 3824
Database tests.

Class

DatabaseEmptyStatementTestCase
Tests the empty pseudo-statement class.

Code

function testEmpty() {
  $result = new DatabaseStatementEmpty();

  $this->assertTrue($result instanceof DatabaseStatementInterface, 'Class implements expected interface');
  $this->assertNull($result->fetchObject(), 'Null result returned.');
}