protected function DatabaseTransactionTestCase::cleanUp

7.x database_test.test protected DatabaseTransactionTestCase::cleanUp()

Start over for a new test.

2 calls to DatabaseTransactionTestCase::cleanUp()
DatabaseTransactionTestCase::testTransactionStacking in drupal-7.x/modules/simpletest/tests/database_test.test
Test transaction stacking and commit / rollback.
DatabaseTransactionTestCase::testTransactionWithDdlStatement in drupal-7.x/modules/simpletest/tests/database_test.test
Test the compatibility of transactions with DDL statements.

File

drupal-7.x/modules/simpletest/tests/database_test.test, line 3669

Class

DatabaseTransactionTestCase
Test transaction support, particularly nesting.

Code

protected function cleanUp() {
  db_truncate('test')
    ->execute();
}