protected function GenericCacheBackendUnitTestBase::tearDown in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php \Drupal\system\Tests\Cache\GenericCacheBackendUnitTestBase::tearDown()
Performs cleanup tasks after each individual test method has been run.
Overrides KernelTestBase::tearDown
1 call to GenericCacheBackendUnitTestBase::tearDown()
- ApcuBackendUnitTest::tearDown in core/
modules/ system/ src/ Tests/ Cache/ ApcuBackendUnitTest.php - Performs cleanup tasks after each individual test method has been run.
1 method overrides GenericCacheBackendUnitTestBase::tearDown()
- ApcuBackendUnitTest::tearDown in core/
modules/ system/ src/ Tests/ Cache/ ApcuBackendUnitTest.php - Performs cleanup tasks after each individual test method has been run.
File
- core/
modules/ system/ src/ Tests/ Cache/ GenericCacheBackendUnitTestBase.php, line 118 - Contains \Drupal\system\Tests\Cache\GenericCacheBackendUnitTestBase.
Class
- GenericCacheBackendUnitTestBase
- Tests any cache backend.
Namespace
Drupal\system\Tests\CacheCode
protected function tearDown() {
// 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();
}