From 18b7e4254bde471e4c2060a430b3f219f917c4b9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 1 Sep 2009 17:49:11 +0000 Subject: #269337 by egfrith and wrunt: Added support for more image types (PDF, TIFF, EPS, etc.). --- modules/simpletest/tests/image.test | 2 +- modules/simpletest/tests/image_test.module | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/image.test b/modules/simpletest/tests/image.test index 3eeb602a8..5ebd6bdc2 100644 --- a/modules/simpletest/tests/image.test +++ b/modules/simpletest/tests/image.test @@ -96,7 +96,7 @@ class ImageToolkitUnitTest extends ImageToolkitTestCase { $image = image_load($this->file, $this->toolkit); $this->assertTrue(is_object($image), t('Returned an object.')); $this->assertEqual($this->toolkit, $image->toolkit, t('Image had toolkit set.')); - $this->assertToolkitOperationsCalled(array('load')); + $this->assertToolkitOperationsCalled(array('load', 'get_info')); } /** diff --git a/modules/simpletest/tests/image_test.module b/modules/simpletest/tests/image_test.module index 1428d303c..695485730 100644 --- a/modules/simpletest/tests/image_test.module +++ b/modules/simpletest/tests/image_test.module @@ -58,8 +58,8 @@ function image_test_get_all_calls() { * Store the values passed to a toolkit call. * * @param $op - * One of the image toolkit operations: 'load', 'save', 'settings', 'resize', - * 'rotate', 'crop', 'desaturate'. + * One of the image toolkit operations: 'get_info', 'load', 'save', + * 'settings', 'resize', 'rotate', 'crop', 'desaturate'. * @param $args * Values passed to hook. * @see image_test_get_all_calls() @@ -79,6 +79,14 @@ function image_test_settings() { return array(); } +/** + * Image toolkit's get_info operation. + */ +function image_test_get_info(stdClass $image) { + _image_test_log_call('get_info', array($image)); + return array(); +} + /** * Image tookit's load operation. */ -- cgit v1.2.3