eZ\Bundle\EzPublishCoreBundle\Tests\ApiLoader\CacheFactoryTest::testGetService PHP Method

testGetService() public method

public testGetService ( $name, $expected )
    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));
    }