function GarbageCollectionTest::setUp

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/KeyValueStore/GarbageCollectionTest.php, line 24

Class

GarbageCollectionTest
Tests garbage collection for the expirable key-value database storage.

Namespace

Drupal\KernelTests\Core\KeyValueStore

Code

protected function setUp() {
    parent::setUp();
    // These additional tables are necessary due to the call to system_cron().
    $this->installSchema('system', [
        'key_value_expire',
    ]);
}

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