diff options
Diffstat (limited to 'modules/simpletest/tests/image_test.module')
-rw-r--r-- | modules/simpletest/tests/image_test.module | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/simpletest/tests/image_test.module b/modules/simpletest/tests/image_test.module index 07f59461d..ed2cd320f 100644 --- a/modules/simpletest/tests/image_test.module +++ b/modules/simpletest/tests/image_test.module @@ -34,6 +34,7 @@ function image_test_reset() { 'save' => array(), 'settings' => array(), 'resize' => array(), + 'rotate' => array(), 'crop' => array(), 'desaturate' => array(), ); @@ -46,8 +47,8 @@ function image_test_reset() { * * @return * An array keyed by operation name ('load', 'save', 'settings', 'resize', - * 'crop', 'desaturate') with values being arrays of parameters passed to - * each call. + * 'rotate', 'crop', 'desaturate') with values being arrays of parameters + * passed to each call. */ function image_test_get_all_calls() { return variable_get('image_test_results', array()); @@ -58,7 +59,7 @@ function image_test_get_all_calls() { * * @param $op * One of the image toolkit operations: 'load', 'save', 'settings', 'resize', - * 'crop', 'desaturate'. + * 'rotate', 'crop', 'desaturate'. * @param $args * Values passed to hook. * @see image_test_get_all_calls() @@ -113,6 +114,14 @@ function image_test_resize(stdClass $image, $width, $height) { } /** + * Image tookit's rotate operation. + */ +function image_test_rotate(stdClass $image, $degrees, $background = NULL) { + _image_test_log_call('rotate', array($image, $degrees, $background)); + return TRUE; +} + +/** * Image tookit's desaturate operation. */ function image_test_desaturate(stdClass $image) { |