예제 #1
0
 public function testResize()
 {
     $this->image->setWidth(100);
     $this->image->setHeight(100);
     $imageProcessor = $this->getMockBuilder('Magento\\Framework\\Image')->disableOriginalConstructor()->getMock();
     $imageProcessor->expects($this->once())->method('resize')->with($this->image->getWidth(), $this->image->getHeight())->will($this->returnValue(true));
     $this->image->setImageProcessor($imageProcessor);
     $result = $this->image->resize();
     $this->assertSame($this->image, $result);
 }