public function DatabaseLegacyTest::testDbFindTables in Drupal 8
Tests the db_find_tables() function.
@expectedDeprecation db_find_tables() is deprecated in drupal:8.0.0. It will be removed from drupal:9.0.0. Use $injected_database->schema()->findTables($table_expression) instead. See https://www.drupal.org/node/2993033
File
- core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseLegacyTest.php, line 81
Class
- DatabaseLegacyTest
- Deprecation tests cases for the database layer.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testDbFindTables() {
$expected = [
'test_people' => 'test_people',
'test_people_copy' => 'test_people_copy',
];
$this
->assertEquals($expected, db_find_tables('test_people%'));
}