You are here

public function DatabaseLegacyTest::testDbDropTable in Drupal 8

Tests the db_drop_table() function.

@expectedDeprecation db_drop_table() is deprecated in drupal:8.0.0. It will be removed from drupal:9.0.0. Use \Drupal\Core\Database\Database::getConnection()->schema()->dropTable() instead. See https://www.drupal.org/node/2993033

File

core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php, line 104

Class

DatabaseLegacyTest
Deprecation tests cases for the database layer.

Namespace

Drupal\KernelTests\Core\Database

Code

public function testDbDropTable() {
  $this
    ->assertFalse(db_drop_table('temp_test_table'));
}