diff options
Diffstat (limited to 'modules/simpletest/tests/image.test')
-rw-r--r-- | modules/simpletest/tests/image.test | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/modules/simpletest/tests/image.test b/modules/simpletest/tests/image.test index d25d89582..bf0d717f2 100644 --- a/modules/simpletest/tests/image.test +++ b/modules/simpletest/tests/image.test @@ -14,14 +14,6 @@ class ImageToolkitTestCase extends DrupalWebTestCase { protected $file; protected $image; - public static function getInfo() { - return array( - 'name' => t('Image toolkit tests'), - 'description' => t('Check image tookit functions.'), - 'group' => t('Image API'), - ); - } - function setUp() { parent::setUp('image_test'); @@ -72,6 +64,19 @@ class ImageToolkitTestCase extends DrupalWebTestCase { $this->assertTrue(TRUE, t('No unexpected operations were called.')); } } +} + +/** + * Test that the functions in image.inc correctly pass data to the toolkit. + */ +class ImageToolkitUnitTest extends ImageToolkitTestCase { + public static function getInfo() { + return array( + 'name' => t('Image toolkit tests'), + 'description' => t('Check image toolkit functions.'), + 'group' => t('Image'), + ); + } /** * Check that hook_image_toolkits() is called and only available toolkits are @@ -207,7 +212,7 @@ class ImageToolkitGdTestCase extends DrupalWebTestCase { return array( 'name' => t('Image GD manipulation tests'), 'description' => t('Check that core image manipulations work properly: scale, resize, rotate, crop, scale and crop, and desaturate.'), - 'group' => t('Image API'), + 'group' => t('Image'), ); } |