You are here

public function DatabaseReservedKeywordTestCase::testSelectReservedWordTableCount in Drupal 7

File

modules/simpletest/tests/database_test.test, line 4302

Class

DatabaseReservedKeywordTestCase
Test reserved keyword handling (introduced for MySQL 8+)

Code

public function testSelectReservedWordTableCount() {
  $rows = db_select('virtual')
    ->countQuery()
    ->execute()
    ->fetchField();
  $this
    ->assertEqual($rows, 1, 'Successful count query on a table with a reserved name.');
}