summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/image.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/image.test')
-rw-r--r--modules/simpletest/tests/image.test5
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;