protected function GenericCacheBackendUnitTestBase::tearDown in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::tearDown()
- 9 core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::tearDown()
Overrides KernelTestBase::tearDown
1 method overrides GenericCacheBackendUnitTestBase::tearDown()
- ApcuBackendTest::tearDown in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ ApcuBackendTest.php
File
- core/
tests/ Drupal/ KernelTests/ Core/ Cache/ GenericCacheBackendUnitTestBase.php, line 113
Class
- GenericCacheBackendUnitTestBase
- Tests any cache backend.
Namespace
Drupal\KernelTests\Core\CacheCode
protected function tearDown() : void {
// Destruct the registered backend, each test will get a fresh instance,
// properly emptying it here ensure that on persistent data backends they
// will come up empty the next test.
foreach ($this->cachebackends as $bin => $cachebackend) {
$this->cachebackends[$bin]
->deleteAll();
}
unset($this->cachebackends);
$this
->tearDownCacheBackend();
parent::tearDown();
}