function SharedDatabaseStateViolationTest::resetEnvironment
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/SharedDatabaseStateViolationTest.php \Drupal\KernelTests\SharedDatabaseStateViolationTest::resetEnvironment()
Resets the environment after a test method has run.
Overrides KernelTestBase::resetEnvironment
File
-
core/
tests/ Drupal/ KernelTests/ SharedDatabaseStateViolationTest.php, line 199
Class
- SharedDatabaseStateViolationTest
- Tests how "KernelTestBase" reports shared database state violations.
Namespace
Drupal\KernelTestsCode
protected function resetEnvironment() : void {
parent::resetEnvironment();
if ($this->failReset) {
throw new \RuntimeException('The cleanup failed.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.