protected function GarbageCollectionTest::tearDown

Deletes created files, database tables, and reverts all environment changes.

This method needs to be invoked for both unit and integration tests.

Overrides TestBase::tearDown

See also

TestBase::prepareDatabasePrefix()

TestBase::changeDatabasePrefix()

TestBase::prepareEnvironment()

File

drupal/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/GarbageCollectionTest.php, line 34
Contains Drupal\system\Tests\KeyValueStore\GarbageCollectionTest.

Class

GarbageCollectionTest
Tests garbage collection for DatabaseStorageExpirable.

Namespace

Drupal\system\Tests\KeyValueStore

Code

protected function tearDown() {
  db_drop_table('key_value_expire');
  parent::tearDown();
}