You are here

public function PostgresqlConnectionTest::testEscapeAlias 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::testEscapeAlias()

@covers ::escapeAlias @dataProvider providerEscapeAlias

File

core/tests/Drupal/Tests/Core/Database/Driver/pgsql/PostgresqlConnectionTest.php, line 102
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 testEscapeAlias($expected, $name) {
  $pgsql_connection = new Connection($this->mockPdo, []);
  $this
    ->assertEquals($expected, $pgsql_connection
    ->escapeAlias($name));
}