ConnectionUnitTest.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/mysql/tests/src/Kernel/mysql/ConnectionUnitTest.php
- 9 core/modules/pgsql/tests/src/Kernel/pgsql/ConnectionUnitTest.php
- 8.9.x core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
- 10 core/modules/mysql/tests/src/Kernel/mysql/ConnectionUnitTest.php
- 10 core/modules/pgsql/tests/src/Kernel/pgsql/ConnectionUnitTest.php
Namespace
Drupal\Tests\mysql\Kernel\mysqlFile
-
core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ ConnectionUnitTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\mysql\Kernel\mysql;
use Drupal\KernelTests\Core\Database\DriverSpecificConnectionUnitTestBase;
// cspell:ignore processlist
/**
* MySQL-specific connection unit tests.
*
* @group Database
*/
class ConnectionUnitTest extends DriverSpecificConnectionUnitTestBase {
/**
* Returns a set of queries specific for MySQL.
*/
protected function getQuery() : array {
return [
'connection_id' => 'SELECT CONNECTION_ID()',
'processlist' => 'SHOW PROCESSLIST',
'show_tables' => 'SHOW TABLES',
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ConnectionUnitTest | MySQL-specific connection unit tests. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.