You are here

public function DatabaseReservedKeywordTestCase::testDeleteReservedWordTable in Drupal 7

File

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

Class

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

Code

public function testDeleteReservedWordTable() {
  $delete = db_delete('virtual')
    ->condition('function', 'Function value 1');
  $num_deleted = $delete
    ->execute();
  $this
    ->assertEqual($num_deleted, 1, "Deleted 1 record from a table with a name and column which are reserved words..");
}