You are here

protected function ConnectionTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Database/Driver/mysql/ConnectionTest.php \Drupal\Tests\Core\Database\Driver\mysql\ConnectionTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Database/Driver/mysql/ConnectionTest.php, line 34

Class

ConnectionTest
Tests MySQL database connections.

Namespace

Drupal\Tests\Core\Database\Driver\mysql

Code

protected function setUp() : void {
  $this->pdoStatement = $this
    ->prophesize(\PDOStatement::class);
  $this->pdoConnection = $this
    ->prophesize(\PDO::class);
}