summaryrefslogtreecommitdiff
path: root/modules/user/user.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.test')
-rw-r--r--modules/user/user.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/user/user.test b/modules/user/user.test
index 228be6b81..a8abd3ea2 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -568,7 +568,9 @@ class UserPictureTestCase extends DrupalWebTestCase {
$this->drupalLogin($this->user);
- $image = current($this->drupalGetTestFiles('image'));
+ // Images are sorted first by size then by name. We need an image
+ // bigger than 1 KB so we'll grab the last one.
+ $image = end($this->drupalGetTestFiles('image'));
$info = image_get_info($image->filepath);
// Set new variables: valid dimensions, invalid filesize.