ImboUnitTest\Image\Transformation\SharpenTest::testProvidesSharpenPresets PHP Method

testProvidesSharpenPresets() public method

public testProvidesSharpenPresets ( $preset, $radius, $sigma, $gain, $threshold )
    public function testProvidesSharpenPresets($preset, $radius, $sigma, $gain, $threshold)
    {
        $image = $this->getMock('Imbo\\Model\\Image');
        $image->expects($this->once())->method('hasBeenTransformed')->with(true);
        $event = $this->getMock('Imbo\\EventManager\\Event');
        $event->expects($this->at(0))->method('getArgument')->with('params')->will($this->returnValue(['preset' => $preset]));
        $event->expects($this->at(1))->method('getArgument')->with('image')->will($this->returnValue($image));
        $imagick = $this->getMock('Imagick');
        $imagick->expects($this->once())->method('unsharpMaskImage')->with($radius, $sigma, $gain, $threshold);
        $this->transformation->setImagick($imagick);
        $this->transformation->transform($event);
    }