You are here

public function ConnectionTest::testEscapeTable in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php \Drupal\Tests\Core\Database\ConnectionTest::testEscapeTable()

@covers ::escapeTable @dataProvider providerEscapeTables

File

core/tests/Drupal/Tests/Core/Database/ConnectionTest.php, line 460

Class

ConnectionTest
Tests the Connection class.

Namespace

Drupal\Tests\Core\Database

Code

public function testEscapeTable($expected, $name, array $identifier_quote = [
  '"',
  '"',
]) {
  $mock_pdo = $this
    ->createMock(StubPDO::class);
  $connection = new StubConnection($mock_pdo, [], $identifier_quote);
  $this
    ->assertEquals($expected, $connection
    ->escapeTable($name));
}