You are here

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

Code

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