You are here

protected function TransactionTest::cleanUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Database/TransactionTest.php \Drupal\system\Tests\Database\TransactionTest::cleanUp()

Starts over for a new test.

2 calls to TransactionTest::cleanUp()
TransactionTest::testTransactionStacking in core/modules/system/src/Tests/Database/TransactionTest.php
Tests transaction stacking, commit, and rollback.
TransactionTest::testTransactionWithDdlStatement in core/modules/system/src/Tests/Database/TransactionTest.php
Tests the compatibility of transactions with DDL statements.

File

core/modules/system/src/Tests/Database/TransactionTest.php, line 346
Contains \Drupal\system\Tests\Database\TransactionTest.

Class

TransactionTest
Tests the transaction abstraction system.

Namespace

Drupal\system\Tests\Database

Code

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