function StubTransactionManager::beginClientTransaction
Begins a transaction on the client connection.
Return value
bool Returns TRUE on success.
Overrides TransactionManagerBase::beginClientTransaction
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ Stub/ StubTransactionManager.php, line 24
Class
- StubTransactionManager
- A stub of the TransactionManagerBase class for testing purposes.
Namespace
Drupal\Tests\Core\Database\StubCode
protected function beginClientTransaction() : bool {
return $this->success ? TRUE : throw new TransactionException('Failed start of transaction');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.