function MysqlDriverTest::testConnection
Tests connection.
@legacy-covers \Drupal\mysql\Driver\Database\mysql\Connection
File
-
core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ MysqlDriverTest.php, line 26
Class
- MysqlDriverTest
- Tests the deprecations of the MySQL database driver classes in Core.
Namespace
Drupal\Tests\mysql\Kernel\mysqlCode
public function testConnection() : void {
// @phpstan-ignore class.notFound
$connection = new Connection($this->createMock(\PHP_VERSION_ID >= 80400 ? Mysql::class : StubPDO::class), []);
$this->assertInstanceOf(Connection::class, $connection);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.