summaryrefslogtreecommitdiff
path: root/modules/image/image.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-19 15:05:30 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-19 15:05:30 +0000
commitdda9c28c1c04b0af598c6d424004ae445988e0a8 (patch)
tree35027576f0c22f7a1e420cc5365f571ef842af98 /modules/image/image.test
parent3cad9f411a47add97f508647911b1fdb319377cd (diff)
downloadbrdo-dda9c28c1c04b0af598c6d424004ae445988e0a8.tar.gz
brdo-dda9c28c1c04b0af598c6d424004ae445988e0a8.tar.bz2
- Patch #523520 by c960657: image_style_generate_url() and image_style_url() do the same.
Diffstat (limited to 'modules/image/image.test')
-rw-r--r--modules/image/image.test15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/image/image.test b/modules/image/image.test
index d8426e70d..0ad1de431 100644
--- a/modules/image/image.test
+++ b/modules/image/image.test
@@ -86,21 +86,6 @@ class ImageStylesPathAndUrlUnitTest extends DrupalWebTestCase {
$expected = file_create_url(image_style_path($this->style_name, $this->image_with_generated));
$this->assertEqual($actual, $expected, t('Got the download URL for an existing file.'));
}
-
- /**
- * Test image_style_generate_url().
- */
- function testImageStyleGenerateUrl() {
- // Test it with no generated file.
- $actual = image_style_generate_url($this->style_name, $this->image_without_generated);
- $expected = url('image/generate/' . $this->style_name . '/' . $this->image_without_generated, array('absolute' => TRUE));
- $this->assertEqual($actual, $expected, t('Got the generate URL for a non-existent file.'));
-
- // Now test it with a generated file.
- $actual = image_style_generate_url($this->style_name, $this->image_with_generated);
- $expected = file_create_url(image_style_path($this->style_name, $this->image_with_generated));
- $this->assertEqual($actual, $expected, t('Got the download URL for an existing file.'));
- }
}
/**