From 690c14e8577ec2bee989c4cef0894a2acb4774ab Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 28 Dec 2009 14:00:01 +0000 Subject: - Patch #667264 by Damien Tournoud: fixed some broken tests. --- modules/simpletest/tests/image.test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/simpletest/tests/image.test') 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; -- cgit v1.2.3