Test the image_resize_effect() function.
function testResizeEffect() {
$this
->assertTrue(image_resize_effect($this->image, array(
'width' => 1,
'height' => 2,
)), 'Function returned the expected value.');
$this
->assertToolkitOperationsCalled(array(
'resize',
));
// Check the parameters.
$calls = $this
->imageTestGetAllCalls();
$this
->assertEqual($calls['resize'][0][1], 1, 'Width was passed correctly');
$this
->assertEqual($calls['resize'][0][2], 2, 'Height was passed correctly');
}