function DriverSpecificTransactionTestBase::cleanUp
Same name in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php \Drupal\KernelTests\Core\Database\DriverSpecificTransactionTestBase::cleanUp()
Starts over for a new test.
3 calls to DriverSpecificTransactionTestBase::cleanUp()
- DriverSpecificTransactionTestBase::testConnectionDeprecations in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificTransactionTestBase.php - Tests deprecation of Connection methods.
- DriverSpecificTransactionTestBase::testTransactionStacking in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificTransactionTestBase.php - Tests transaction stacking, commit, and rollback.
- DriverSpecificTransactionTestBase::testTransactionWithDdlStatement in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificTransactionTestBase.php - Tests the compatibility of transactions with DDL statements.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificTransactionTestBase.php, line 480
Class
- DriverSpecificTransactionTestBase
- Tests the transaction abstraction system.
Namespace
Drupal\KernelTests\Core\DatabaseCode
protected function cleanUp() {
$this->connection
->truncate('test')
->execute();
$this->postTransactionCallbackAction = NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.