eZ\Bundle\EzPublishCoreBundle\Tests\Imagine\Filter\Loader\ScaleWidthDownOnlyFilterLoaderTest::testLoad PHP Method

testLoad() public method

public testLoad ( )
    public function testLoad()
    {
        $width = 123;
        $image = $this->getMock('\\Imagine\\Image\\ImageInterface');
        $this->innerLoader->expects($this->once())->method('load')->with($image, $this->equalTo(array('size' => array($width, null), 'mode' => ImageInterface::THUMBNAIL_INSET)))->will($this->returnValue($image));
        $this->assertSame($image, $this->loader->load($image, array($width)));
    }
ScaleWidthDownOnlyFilterLoaderTest