You are here

protected function TransactionTest::cleanUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php \Drupal\KernelTests\Core\Database\TransactionTest::cleanUp()
  2. 10 core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php \Drupal\KernelTests\Core\Database\TransactionTest::cleanUp()

Starts over for a new test.

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

File

core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php, line 311

Class

TransactionTest
Tests the transaction abstraction system.

Namespace

Drupal\KernelTests\Core\Database

Code

protected function cleanUp() {
  $this->connection
    ->truncate('test')
    ->execute();
}