You are here

public function SqlsrvConnectionTest::testDriverString 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::testDriverString()
  2. 3.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()
  3. 3.1.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()
  4. 4.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()
  5. 4.1.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()

Test that the connection returns the correct driver string.

File

tests/src/Unit/SqlsrvConnectionTest.php, line 125

Class

SqlsrvConnectionTest
Test the behavior of the Connection class.

Namespace

Drupal\Tests\sqlsrv\Unit

Code

public function testDriverString() {
  $connection = new Connection($this->mockPdo, $this->options);
  $this
    ->assertEquals('sqlsrv', $connection
    ->driver());
}