Neos\Cache\Tests\Unit\Backend\SimpleFileBackendTest::getSimpleFileBackend PHP Method

getSimpleFileBackend() protected method

Convenience function to retrieve an instance of SimpleFileBackend with required dependencies
protected getSimpleFileBackend ( array $options = [], Neos\Cache\Frontend\FrontendInterface $mockCacheFrontend = null ) : SimpleFileBackend
$options array
$mockCacheFrontend Neos\Cache\Frontend\FrontendInterface
return Neos\Cache\Backend\SimpleFileBackend
    protected function getSimpleFileBackend(array $options = [], FrontendInterface $mockCacheFrontend = null)
    {
        $simpleFileBackend = new SimpleFileBackend($this->mockEnvironmentConfiguration, $options);
        if ($mockCacheFrontend === null) {
            $simpleFileBackend->setCache($this->mockCacheFrontend);
        } else {
            $simpleFileBackend->setCache($mockCacheFrontend);
        }
        return $simpleFileBackend;
    }