Inheritance: extends Liip\ImagineBundle\Imagine\Filter\FilterConfiguration
 protected function setUp()
 {
     parent::setUp();
     $this->ioService = $this->getMock('eZ\\Publish\\Core\\IO\\IOServiceInterface');
     $this->requestContext = new RequestContext();
     $this->configResolver = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface');
     $this->filterConfiguration = new FilterConfiguration();
     $this->filterConfiguration->setConfigResolver($this->configResolver);
     $this->imageResolver = new IORepositoryResolver($this->ioService, $this->requestContext, $this->filterConfiguration);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->ioService = $this->getMock('eZ\\Publish\\Core\\IO\\IOServiceInterface');
     $this->requestContext = new RequestContext();
     $this->configResolver = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface');
     $this->filterConfiguration = new FilterConfiguration();
     $this->filterConfiguration->setConfigResolver($this->configResolver);
     $this->variationPurger = $this->getMock('eZ\\Publish\\SPI\\Variation\\VariationPurger');
     $this->variationPathGenerator = $this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\Imagine\\VariationPathGenerator');
     $this->imageResolver = new IORepositoryResolver($this->ioService, $this->requestContext, $this->filterConfiguration, $this->variationPurger, $this->variationPathGenerator);
 }
 public function testAll()
 {
     $fooConfig = array('fooconfig');
     $barConfig = array('barconfig');
     $this->filterConfiguration->set('foo', $fooConfig);
     $this->filterConfiguration->set('bar', $barConfig);
     $this->filterConfiguration->set('some_variation', array());
     $filters = array('some_filter' => array());
     $reference = 'another_variation';
     $eZVariationConfig = array('filters' => $filters, 'reference' => $reference);
     $variations = array('some_variation' => $eZVariationConfig);
     $this->configResolver->expects($this->once())->method('getParameter')->with('image_variations')->will($this->returnValue($variations));
     $this->assertEquals(array('foo' => $fooConfig, 'bar' => $barConfig, 'some_variation' => $eZVariationConfig), $this->filterConfiguration->all());
 }