public function PostgresqlConnectionTest::testEscapeField in Drupal 8
@covers ::escapeField @dataProvider providerEscapeFields
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ Driver/ pgsql/ PostgresqlConnectionTest.php, line 113
Class
- PostgresqlConnectionTest
- @coversDefaultClass \Drupal\Core\Database\Driver\pgsql\Connection @group Database
Namespace
Drupal\Tests\Core\Database\Driver\pgsqlCode
public function testEscapeField($expected, $name) {
$pgsql_connection = new Connection($this->mockPdo, []);
$this
->assertEquals($expected, $pgsql_connection
->escapeField($name));
}