public function SqlsrvConnectionTest::testDriverString in Drupal driver for SQL Server and SQL Azure 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()
- 4.2.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()
- 3.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()
- 4.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDriverString()
- 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 117
Class
- SqlsrvConnectionTest
- Test the behavior of the Connection class.
Namespace
Drupal\Tests\sqlsrv\UnitCode
public function testDriverString() {
$connection = new Connection($this->mockPdo, $this->options);
$this
->assertEquals('sqlsrv', $connection
->driver());
}