public function PostgresqlConnectionTest::providerEscapeAlias in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php \Drupal\Tests\Core\Database\Driver\pgsql\PostgresqlConnectionTest::providerEscapeAlias()
Data provider for testEscapeAlias.
Return value
[] 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 58 - Contains \Drupal\Tests\Core\Database\Driver\pgsql\PostgresqlConnectionTest.
Class
- PostgresqlConnectionTest
- @coversDefaultClass \Drupal\Core\Database\Driver\pgsql\Connection @group Database
Namespace
Drupal\Tests\Core\Database\Driver\pgsqlCode
public function providerEscapeAlias() {
return array(
array(
'nocase',
'nocase',
),
array(
'"camelCase"',
'"camelCase"',
),
array(
'"camelCase"',
'camelCase',
),
array(
'"camelCase"',
'camel.Case',
),
);
}