You are here

protected function TransactionTest::cleanUp in Drupal 10

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

Starts over for a new test.

File

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

Class

TransactionTest
Tests the transaction abstraction system.

Namespace

Drupal\KernelTests\Core\Database

Code

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