function CachedStorageTest::delete

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php \Drupal\KernelTests\Core\Config\Storage\CachedStorageTest::delete()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php \Drupal\KernelTests\Core\Config\Storage\CachedStorageTest::delete()
  3. 10 core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php \Drupal\KernelTests\Core\Config\Storage\CachedStorageTest::delete()

Overrides ConfigStorageTestBase::delete

File

core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php, line 79

Class

CachedStorageTest
Tests CachedStorage operations.

Namespace

Drupal\KernelTests\Core\Config\Storage

Code

protected function delete($name) : void {
    $this->cache
        ->delete($name);
    unlink($this->fileStorage
        ->getFilePath($name));
}

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