function UpdateMiscTest::testClearDiskCache
Same name in other branches
- 10 core/modules/update/tests/src/Functional/UpdateMiscTest.php \Drupal\Tests\update\Functional\UpdateMiscTest::testClearDiskCache()
Checks that clearing the disk cache works.
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateMiscTest.php, line 46
Class
- UpdateMiscTest
- Tests general functionality of the Update module.
Namespace
Drupal\Tests\update\FunctionalCode
public function testClearDiskCache() : void {
$directories = [
_update_manager_cache_directory(FALSE),
_update_manager_extract_directory(FALSE),
];
// Check that update directories does not exists.
foreach ($directories as $directory) {
$this->assertDirectoryDoesNotExist($directory);
}
// Method must not fail if update directories do not exists.
update_clear_update_disk_cache();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.