function TransactionTest::setUp
Overrides DatabaseTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ TransactionTest.php, line 55
Class
- TransactionTest
- Tests the transactions, using the explicit ::commitOrRelease method.
Namespace
Drupal\KernelTests\Core\DatabaseCode
protected function setUp() : void {
parent::setUp();
// Set the transaction manager to trigger warnings when appropriate.
$this->connection
->transactionManager()->triggerWarningWhenUnpilingOnVoidTransaction = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.