function ApcuBackendTest::tearDown

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php \Drupal\KernelTests\Core\Cache\ApcuBackendTest::tearDown()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php \Drupal\KernelTests\Core\Cache\ApcuBackendTest::tearDown()
  3. 10 core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php \Drupal\KernelTests\Core\Cache\ApcuBackendTest::tearDown()

Overrides GenericCacheBackendUnitTestBase::tearDown

File

core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php, line 28

Class

ApcuBackendTest
Tests the APCu cache backend.

Namespace

Drupal\KernelTests\Core\Cache

Code

protected function tearDown() : void {
    foreach ($this->cacheBackends as $bin => $cache_backend) {
        $this->cacheBackends[$bin]
            ->removeBin();
    }
    parent::tearDown();
}

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