ImboUnitTest\Image\Transformation\CropTest::testThrowsExceptionWhenWidthIsMissing PHP Method

testThrowsExceptionWhenWidthIsMissing() public method

    public function testThrowsExceptionWhenWidthIsMissing()
    {
        $event = $this->getMock('Imbo\\EventManager\\Event');
        $event->expects($this->at(0))->method('getArgument')->with('image')->will($this->returnValue($this->getMock('Imbo\\Model\\Image')));
        $event->expects($this->at(1))->method('getArgument')->with('params')->will($this->returnValue(['height' => 123]));
        $transformation = new Crop();
        $transformation->transform($event);
    }