function TransactionTest::cleanUp

Same name and namespace in other branches
  1. 11.x 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 311

Class

TransactionTest
Tests the transaction abstraction system.

Namespace

Drupal\KernelTests\Core\Database

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.