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