function ConnectionTest::setUp
Same name in other branches
- 9 core/modules/mysql/tests/src/Unit/ConnectionTest.php \Drupal\Tests\mysql\Unit\ConnectionTest::setUp()
- 11.x core/modules/mysql/tests/src/Unit/ConnectionTest.php \Drupal\Tests\mysql\Unit\ConnectionTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ mysql/ tests/ src/ Unit/ ConnectionTest.php, line 36
Class
- ConnectionTest
- Tests MySQL database connections.
Namespace
Drupal\Tests\mysql\UnitCode
protected function setUp() : void {
parent::setUp();
$this->pdoStatement = $this->prophesize(\PDOStatement::class);
$this->pdoConnection = $this->prophesize(\PDO::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.