public function SqlsrvConnectionTest::testDatabaseType in Drupal driver for SQL Server and SQL Azure 8.2
Same name and namespace in other branches
- 4.2.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDatabaseType()
- 3.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDatabaseType()
- 3.1.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDatabaseType()
- 4.0.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDatabaseType()
- 4.1.x tests/src/Unit/SqlsrvConnectionTest.php \Drupal\Tests\sqlsrv\Unit\SqlsrvConnectionTest::testDatabaseType()
Test that the connection returns the correct database type string.
File
- tests/
src/ Unit/ SqlsrvConnectionTest.php, line 135
Class
- SqlsrvConnectionTest
- Test the behavior of the Connection class.
Namespace
Drupal\Tests\sqlsrv\UnitCode
public function testDatabaseType() {
$connection = new Connection($this->mockPdo, $this->options);
$this
->assertEquals('sqlsrv', $connection
->databaseType());
}