Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 7.x
»
database_test.test
»
DatabaseTransactionTestCase
Search Drupal 7.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 7.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
protected function DatabaseTransactionTestCase::cleanUp
Start over for a new test.
2 calls to DatabaseTransactionTestCase::cleanUp()
DatabaseTransactionTestCase::testTransactionStacking
in drupal/
modules/
simpletest/
tests/
database_test.test
Test transaction stacking and commit / rollback.
DatabaseTransactionTestCase::testTransactionWithDdlStatement
in drupal/
modules/
simpletest/
tests/
database_test.test
Test the compatibility of transactions with DDL statements.
File
drupal/
modules/
simpletest/
tests/
database_test.test
, line 3800
Class
DatabaseTransactionTestCase
Test transaction support, particularly nesting.
Code
protected
function
cleanUp
() {
db_truncate
(
'test'
) ->
execute
(); }