Neos\Cache\Tests\Unit\Backend\FileBackendTest::removeReallyRemovesACacheEntry PHP Метод

removeReallyRemovesACacheEntry() публичный Метод

    public function removeReallyRemovesACacheEntry()
    {
        $mockCache = $this->createMock(AbstractFrontend::class);
        $mockCache->expects($this->atLeastOnce())->method('getIdentifier')->will($this->returnValue('UnitTestCache'));
        $data = 'some data' . microtime();
        $entryIdentifier = 'BackendFileTest';
        $pathAndFilename = 'vfs://Foo/Cache/Data/UnitTestCache/' . $entryIdentifier;
        $backend = $this->prepareDefaultBackend();
        $backend->setCache($mockCache);
        $backend->set($entryIdentifier, $data);
        $this->assertFileExists($pathAndFilename);
        $backend->remove($entryIdentifier);
        $this->assertFileNotExists($pathAndFilename);
    }
FileBackendTest