protected function getMockCache($path = null)
{
$app = $this->getApp();
if ($path === null) {
$path = $app['resources']->getPath('cache');
}
$params = [$path, Cache::EXTENSION, 02, $app['filesystem']];
return $this->getMockBuilder(Cache::class)->setMethods(['flushAll'])->setConstructorArgs($params)->getMock();
}