function MysqlDriverTest::testConnection

Same name in other branches
  1. 10 core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverTest.php \Drupal\Tests\mysql\Kernel\mysql\MysqlDriverTest::testConnection()

@covers \Drupal\mysql\Driver\Database\mysql\Connection

File

core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverTest.php, line 21

Class

MysqlDriverTest
Tests the deprecations of the MySQL database driver classes in Core.

Namespace

Drupal\Tests\mysql\Kernel\mysql

Code

public function testConnection() : void {
    $connection = new Connection($this->createMock(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.