public function PostgresqlConnectionTest::providerEscapeAlias in Drupal 8
Data provider for testEscapeAlias.
Return value
array Array of arrays with the following elements:
- Expected escaped string.
- String to escape.
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ Driver/ pgsql/ PostgresqlConnectionTest.php, line 59
Class
- PostgresqlConnectionTest
- @coversDefaultClass \Drupal\Core\Database\Driver\pgsql\Connection @group Database
Namespace
Drupal\Tests\Core\Database\Driver\pgsqlCode
public function providerEscapeAlias() {
return [
[
'nocase',
'nocase',
],
[
'"camelCase"',
'"camelCase"',
],
[
'"camelCase"',
'camelCase',
],
[
'"camelCase"',
'camel.Case',
],
];
}