public function SqlsrvConnectionTest::testEscapeTable in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
- 4.2.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
- 3.1.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
- 4.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
- 4.1.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
Test that tables are properly escaped.
@dataProvider providerEscapeTables
File
- tests/
src/ Unit/ SqlsrvConnectionTest.php, line 97
Class
- SqlsrvConnectionTest
- Test the behavior of the Connection class.
Namespace
Drupal\Tests\sqlsrv\UnitCode
public function testEscapeTable($expected, $name) {
$connection = new Connection($this->mockPdo, $this->options);
$this
->assertEquals($expected, $connection
->escapeTable($name));
}