public function ConnectionTest::testNamespaceDefault in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php \Drupal\Tests\Core\Database\ConnectionTest::testNamespaceDefault()
@covers ::__construct
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ ConnectionTest.php, line 584
Class
- ConnectionTest
- Tests the Connection class.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testNamespaceDefault() {
$mock_pdo = $this
->createMock(StubPDO::class);
$connection = new StubConnection($mock_pdo, []);
$this
->assertSame('Drupal\\Tests\\Core\\Database\\Stub', $connection
->getConnectionOptions()['namespace']);
}