function DriverSpecificTransactionTestBase::rootTransactionCallback
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php \Drupal\KernelTests\Core\Database\DriverSpecificTransactionTestBase::rootTransactionCallback()
A post-transaction callback for testing purposes.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificTransactionTestBase.php, line 838
Class
- DriverSpecificTransactionTestBase
- Tests the transaction abstraction system.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function rootTransactionCallback(bool $success) : void {
$this->postTransactionCallbackAction = $success ? 'rtcCommit' : 'rtcRollback';
$this->insertRow($this->postTransactionCallbackAction);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.