function ConnectionUnitTest::getQuery

Returns a set of queries specific for MySQL.

Overrides DriverSpecificConnectionUnitTestBase::getQuery

File

core/modules/mysql/tests/src/Kernel/mysql/ConnectionUnitTest.php, line 19

Class

ConnectionUnitTest
MySQL-specific connection unit tests.

Namespace

Drupal\Tests\mysql\Kernel\mysql

Code

protected function getQuery() : array {
  return [
    'connection_id' => 'SELECT CONNECTION_ID()',
    'processlist' => 'SHOW PROCESSLIST',
    'show_tables' => 'SHOW TABLES',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.