Same name in this branch
  1. 10 core/modules/mysql/tests/src/Kernel/mysql/ConnectionUnitTest.php \Drupal\Tests\mysql\Kernel\mysql\ConnectionUnitTest::getQuery()
  2. 10 core/modules/pgsql/tests/src/Kernel/pgsql/ConnectionUnitTest.php \Drupal\Tests\pgsql\Kernel\pgsql\ConnectionUnitTest::getQuery()
Same name and namespace in other branches
  1. 9 core/modules/mysql/tests/src/Kernel/mysql/ConnectionUnitTest.php \Drupal\Tests\mysql\Kernel\mysql\ConnectionUnitTest::getQuery()

Returns a set of queries specific for MySQL.

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',
  ];
}