summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-12 08:36:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-12 08:36:35 +0000
commit6dc5b5449d6c52b433e6b712786c2e49778a363f (patch)
tree66e4926fa3dcc0a33f46f4145ca5b72bf7458943 /modules/simpletest/tests
parent065fa60551edddc27a30d04cecb58b30b7ac8e3c (diff)
downloadbrdo-6dc5b5449d6c52b433e6b712786c2e49778a363f.tar.gz
brdo-6dc5b5449d6c52b433e6b712786c2e49778a363f.tar.bz2
- Patch #491456 by quicksketch, drewish, et al: image effects and actions.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/image.test23
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'),
);
}