You are here

public function PostgresqlConnectionTest::providerEscapeTables in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php \Drupal\Tests\Core\Database\Driver\pgsql\PostgresqlConnectionTest::providerEscapeTables()

Data provider for testEscapeTable.

Return value

[] An indexed array of where each value is an array of arguments to pass to testEscapeField. The first value is the expected value, and the second value is the value to test.

File

core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php, line 41
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\pgsql

Code

public function providerEscapeTables() {
  return array(
    array(
      'nocase',
      'nocase',
    ),
    array(
      '"camelCase"',
      'camelCase',
    ),
    array(
      '"camelCase"',
      '"camelCase"',
    ),
    array(
      '"camelCase"',
      'camel/Case',
    ),
  );
}