function ConnectionTest::testEscapeTable
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php \Drupal\Tests\Core\Database\ConnectionTest::testEscapeTable()
- 10 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 478
Class
- ConnectionTest
- Tests the Connection class.
Namespace
Drupal\Tests\Core\DatabaseCode
public function testEscapeTable($expected, $name, array $identifier_quote = [
'"',
'"',
]) : void {
$mock_pdo = $this->createMock(StubPDO::class);
$connection = new StubConnection($mock_pdo, [], $identifier_quote);
$this->assertEquals($expected, $connection->escapeTable($name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.