public function SchemaTest::testCreateTableExists in Drupal driver for SQL Server and SQL Azure 8.2
Same name and namespace in other branches
- 4.2.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testCreateTableExists()
 - 3.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testCreateTableExists()
 - 3.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testCreateTableExists()
 - 4.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testCreateTableExists()
 - 4.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testCreateTableExists()
 
Exception thrown when table exists.
File
- tests/
src/ Kernel/ SchemaTest.php, line 154  
Class
- SchemaTest
 - Tests table creation and modification via the schema API.
 
Namespace
Drupal\Tests\sqlsrv\KernelCode
public function testCreateTableExists() {
  $this
    ->expectException(SchemaObjectExistsException::class);
  $this->schema
    ->createTable('test', $this->table);
}