public function ConnectionTest::testEscapeAlias in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php \Drupal\Tests\Core\Database\ConnectionTest::testEscapeAlias()
@covers ::escapeAlias @dataProvider providerEscapeAlias
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ ConnectionTest.php, line 491
Class
- ConnectionTest
- Tests the Connection class.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testEscapeAlias($expected, $name, array $identifier_quote = [
'"',
'"',
]) {
$mock_pdo = $this
->createMock(StubPDO::class);
$connection = new StubConnection($mock_pdo, [], $identifier_quote);
$this
->assertEquals($expected, $connection
->escapeAlias($name));
}