function ConnectionUnitTest::getQuery
Same name in this branch
- 11.x core/modules/pgsql/tests/src/Kernel/pgsql/ConnectionUnitTest.php \Drupal\Tests\pgsql\Kernel\pgsql\ConnectionUnitTest::getQuery()
Same name in other branches
- 9 core/modules/mysql/tests/src/Kernel/mysql/ConnectionUnitTest.php \Drupal\Tests\mysql\Kernel\mysql\ConnectionUnitTest::getQuery()
- 9 core/modules/pgsql/tests/src/Kernel/pgsql/ConnectionUnitTest.php \Drupal\Tests\pgsql\Kernel\pgsql\ConnectionUnitTest::getQuery()
- 10 core/modules/mysql/tests/src/Kernel/mysql/ConnectionUnitTest.php \Drupal\Tests\mysql\Kernel\mysql\ConnectionUnitTest::getQuery()
- 10 core/modules/pgsql/tests/src/Kernel/pgsql/ConnectionUnitTest.php \Drupal\Tests\pgsql\Kernel\pgsql\ConnectionUnitTest::getQuery()
Returns a set of queries specific for MySQL.
Overrides DriverSpecificConnectionUnitTestBase::getQuery
File
-
core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ ConnectionUnitTest.php, line 21
Class
- ConnectionUnitTest
- MySQL-specific connection unit tests.
Namespace
Drupal\Tests\mysql\Kernel\mysqlCode
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.