MysqlDriverTest.php

Same filename and directory in other branches
  1. 11.x core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverTest.php
  2. 10 core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverTest.php

Namespace

Drupal\Tests\mysql\Kernel\mysql

File

core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\mysql\Kernel\mysql;

use Drupal\KernelTests\Core\Database\DriverSpecificKernelTestBase;
use Drupal\mysql\Driver\Database\mysql\Connection;
use Pdo\Mysql;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests the deprecations of the MySQL database driver classes in Core.
 */
class MysqlDriverTest extends DriverSpecificKernelTestBase {
  
  /**
   * Tests connection.
   *
   * @legacy-covers \Drupal\mysql\Driver\Database\mysql\Connection
   */
  public function testConnection() : void {
    $connection = new Connection($this->createMock(Mysql::class), []);
    $this->assertInstanceOf(Connection::class, $connection);
  }

}

Classes

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.