function ApcuBackendTest::tearDown

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php \Drupal\KernelTests\Core\Cache\ApcuBackendTest::tearDown()
  2. 10 core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php \Drupal\KernelTests\Core\Cache\ApcuBackendTest::tearDown()
  3. 11.x 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 25

Class

ApcuBackendTest
Tests the APCu cache backend.

Namespace

Drupal\KernelTests\Core\Cache

Code

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

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