Index: tests/upload_tests.test =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/tests/upload_tests.test,v retrieving revision 1.5 diff -u -r1.5 upload_tests.test --- tests/upload_tests.test 20 Apr 2006 02:26:28 -0000 1.5 +++ tests/upload_tests.test 8 Jul 2006 10:00:21 -0000 @@ -384,14 +384,11 @@ $picture_dir = variable_get('user_picture_path', 'pictures'); $pic_path = file_directory_path() .'/'.$picture_dir .'/picture-'.$user->uid.'.jpg'; - // get full url to the user's image - $picture = file_create_url($pic_path); - print "$picture /n"; // check if image is displayed in user's profile page $content = $this->drupalGetContent(); - print "$content /n"; - $this->assertTrue(strpos($content, $picture), "Image is displayed in user's profile page"); + + $this->assertTrue(strpos($content, $pic_path), "Image is displayed in user's profile page"); // check if file is located in proper directory $this->assertTrue(is_file($pic_path), "File is located in proper directory");