public function ConnectionTest::providerEscapeAlias in Drupal 9
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/ ConnectionTest.php, line 524
Class
- ConnectionTest
- Tests the Connection class.
Namespace
Drupal\Tests\Core\DatabaseCode
public function providerEscapeAlias() {
return [
[
'!nocase!',
'nocase',
[
'!',
'!',
],
],
[
'`backtick`',
'backtick',
[
'`',
'`',
],
],
[
'nocase',
'nocase',
[
'',
'',
],
],
[
'[brackets]',
'brackets',
[
'[',
']',
],
],
[
'"camelCase"',
'"camelCase"',
],
[
'"camelCase"',
'camelCase',
],
[
'"camelCase"',
'camel.Case',
],
];
}