diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-09 07:36:15 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-09 07:36:15 +0000 |
commit | 962a7783d32e5e63ced1298136251ebd840ef768 (patch) | |
tree | ad3b07e8a64437fc699ac1aaed091a9807269835 /modules/user/user.test | |
parent | c591f4562df55d7c656e201b17c6ce6f84d22926 (diff) | |
download | brdo-962a7783d32e5e63ced1298136251ebd840ef768.tar.gz brdo-962a7783d32e5e63ced1298136251ebd840ef768.tar.bz2 |
#371327 by quicksketch: Fix user picture rendering (with fixed tests).
Diffstat (limited to 'modules/user/user.test')
-rw-r--r-- | modules/user/user.test | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/user/user.test b/modules/user/user.test index 327068f5b..89c534a26 100644 --- a/modules/user/user.test +++ b/modules/user/user.test @@ -548,7 +548,7 @@ class UserPictureTestCase extends DrupalWebTestCase { $text = t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', array('%dimensions' => $test_dim)); $this->assertRaw($text, t('Image was resized.')); $alt = t("@user's picture", array('@user' => $this->user->name)); - $this->assertRaw(theme('image', $pic_path, $alt, $alt, '', FALSE), t("Image is displayed in user's profile page")); + $this->assertRaw(theme('image', $pic_path, $alt, $alt, '', FALSE), t("Image is displayed in user's edit page")); // Check if file is located in proper directory. $this->assertTrue(is_file($pic_path), t("File is located in proper directory")); @@ -678,10 +678,11 @@ class UserPictureTestCase extends DrupalWebTestCase { $pic_path = $this->saveUserPicture($image); - // check if image is displayed in user's profile page + // Check if image is displayed in user's profile page. + $this->drupalGet('user'); $this->assertRaw($pic_path, t("Image is displayed in user's profile page")); - // check if file is located in proper directory + // Check if file is located in proper directory. $this->assertTrue(is_file($pic_path), t('File is located in proper directory')); } } |