protected function FileSystemBackendTest::tearDown in File Cache 8
Overrides GenericCacheBackendUnitTestBase::tearDown
File
- tests/
src/ Kernel/ FileSystemBackendTest.php, line 61
Class
- FileSystemBackendTest
- Tests the FileSystemBackend cache backend.
Namespace
Drupal\Tests\filecache\KernelCode
protected function tearDown() {
// The parent method will loop over all cache backends used in the test and
// call ::deleteAll() on them to get rid of persistent cache data. This
// doesn't work for us since we are using the virtual file system which is
// no longer available after the test completes. We don't need to worry
// about cache data persisting after the test since the virtual file system
// is cleaned up in KernelTestBase::tearDown().
$this->cachebackends = [];
parent::tearDown();
}