function DatabaseLegacyTest::testDbTableExists
Tests the db_table_exists() function.
@expectedDeprecation db_table_exists() is deprecated in drupal:8.0.0. It will be removed from drupal:9.0.0. Use $injected_database->schema()->tableExists($table) instead. See https://www.drupal.org/node/2993033
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseLegacyTest.php, line 72
Class
- DatabaseLegacyTest
- Deprecation tests cases for the database layer.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testDbTableExists() {
$this->assertTrue(db_table_exists('test'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.