public function SchemaTest::testDropTableComment 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::testDropTableComment()
- 3.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testDropTableComment()
- 3.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testDropTableComment()
- 4.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testDropTableComment()
- 4.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testDropTableComment()
Verify that comments are dropped when the table is dropped.
File
- tests/
src/ Kernel/ SchemaTest.php, line 84
Class
- SchemaTest
- Tests table creation and modification via the schema API.
Namespace
Drupal\Tests\sqlsrv\KernelCode
public function testDropTableComment() {
// Drop table and ensure comment does not exist.
$this->schema
->dropTable('test');
$this
->assertEmpty($this->schema
->getComment('test'));
$this->schema
->createTable('test', $this->table);
// Verify comment is correct.
$comment = $this->schema
->getComment('test');
$this
->assertEquals('New Comment', $comment);
}