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

public getCachePool ( eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver ) : Stash\Interfaces\PoolInterface
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
Результат Stash\Interfaces\PoolInterface
Пример #1
0
 /**
  * @dataProvider providerGetService
  */
 public function testGetService($name, $expected)
 {
     $this->configResolver->expects($this->once())->method('getParameter')->with('cache_pool_name')->will($this->returnValue($name));
     $this->container->expects($this->once())->method('get')->with($expected)->will($this->returnValue(false));
     $factory = new CacheFactory();
     $factory->setContainer($this->container);
     $this->assertFalse($factory->getCachePool($this->configResolver));
 }