diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-28 14:00:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-28 14:00:01 +0000 |
commit | 690c14e8577ec2bee989c4cef0894a2acb4774ab (patch) | |
tree | ec38a82820d3101e36829a3ed476595d2182ac5d /modules/simpletest/tests/image.test | |
parent | b057283bc3057bc2e5f65ef86c875827e6d6ca34 (diff) | |
download | brdo-690c14e8577ec2bee989c4cef0894a2acb4774ab.tar.gz brdo-690c14e8577ec2bee989c4cef0894a2acb4774ab.tar.bz2 |
- Patch #667264 by Damien Tournoud: fixed some broken tests.
Diffstat (limited to 'modules/simpletest/tests/image.test')
-rw-r--r-- | modules/simpletest/tests/image.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/simpletest/tests/image.test b/modules/simpletest/tests/image.test index 5ebd6bdc2..7c4c3c76a 100644 --- a/modules/simpletest/tests/image.test +++ b/modules/simpletest/tests/image.test @@ -21,7 +21,8 @@ class ImageToolkitTestCase extends DrupalWebTestCase { $this->toolkit = 'test'; // Pick a file for testing. - $this->file = $this->originalFileDirectory . '/simpletest/image-test.png'; + $file = current($this->drupalGetTestFiles('image')); + $this->file = $file->uri; // Setup a dummy image to work with, this replicate image_load() so we // can avoid calling it. @@ -382,7 +383,7 @@ class ImageToolkitGdTestCase extends DrupalWebTestCase { foreach ($files as $file) { foreach ($operations as $op => $values) { // Load up a fresh image. - $image = image_load($this->originalFileDirectory . '/simpletest/' . $file, 'gd'); + $image = image_load(drupal_get_path('module', 'simpletest') . '/files/' . $file, 'gd'); if (!$image) { $this->fail(t('Could not load image %file.', array('%file' => $file))); continue 2; |