function KernelTestBase::getDatabasePrefix
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getDatabasePrefix()
- 10 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getDatabasePrefix()
- 9 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getDatabasePrefix()
- 8.9.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getDatabasePrefix()
Gets the database prefix used for test isolation.
Return value
string The database prefix string used to isolate test database tables.
File
-
core/
tests/ Drupal/ KernelTests/ KernelTestBase.php, line 322
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTestsCode
public function getDatabasePrefix() {
return $this->databasePrefix;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.