function KernelTestBase::getSharedStateTables
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getSharedStateTables()
Returns the tables that make up the shared database state.
Return value
list<string> The table names, without the table recording the state itself.
File
-
core/
tests/ Drupal/ KernelTests/ KernelTestBase.php, line 1356
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTestsCode
private function getSharedStateTables() : array {
$tables = array_values($this->container
->get('database')
->schema()
->findTables('%'));
return array_values(array_diff($tables, [
self::STATE_TABLE,
]));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.