function PostgresqlConnectionTest::providerEscapeAlias

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\pgsql

Code

public function providerEscapeAlias() {
    return [
        [
            'nocase',
            'nocase',
        ],
        [
            '"camelCase"',
            '"camelCase"',
        ],
        [
            '"camelCase"',
            'camelCase',
        ],
        [
            '"camelCase"',
            'camel.Case',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.