You are here

public function SqlsrvConnectionTest::testEscapeTable in Drupal driver for SQL Server and SQL Azure 8.2

Same name and namespace in other branches
  1. 4.2.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
  2. 3.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
  3. 3.1.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
  4. 4.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testEscapeTable()
  5. 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 103

Class

SqlsrvConnectionTest
Test the behavior of the Connection class.

Namespace

Drupal\Tests\sqlsrv\Unit

Code

public function testEscapeTable($expected, $name) {
  $connection = new Connection($this->mockPdo, $this->options);
  $this
    ->assertEquals($expected, $connection
    ->escapeTable($name));
}