function DatabaseEventsTest::setUp
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Database/DatabaseEventsTest.php \Drupal\Tests\Core\Database\DatabaseEventsTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ DatabaseEventsTest.php, line 33
Class
- DatabaseEventsTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Database%21Connection.php/class/Connection/10" title="Base Database API class." class="local">\Drupal\Core\Database\Connection</a>
Namespace
Drupal\Tests\Core\DatabaseCode
protected function setUp() : void {
parent::setUp();
$this->connection = new StubConnection($this->createMock(StubPDO::class), []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.