summaryrefslogtreecommitdiff
path: root/modules/user/user.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-20 03:10:00 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-20 03:10:00 +0000
commit0ec23b9b431108365bba4792e034a0f151e88ddc (patch)
tree17b2c20c59b47db102862893da78184b2a0da15e /modules/user/user.test
parentcb07c9992be48479e8b53117c21407426f4dd510 (diff)
downloadbrdo-0ec23b9b431108365bba4792e034a0f151e88ddc.tar.gz
brdo-0ec23b9b431108365bba4792e034a0f151e88ddc.tar.bz2
#357403 by drewish: Make user pictures managed files.
Diffstat (limited to 'modules/user/user.test')
-rw-r--r--modules/user/user.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/user/user.test b/modules/user/user.test
index 90336a23a..22dea39b1 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -418,7 +418,7 @@ class UserCancelTestCase extends DrupalWebTestCase {
// Create a regular user.
$account = $this->drupalCreateUser(array());
-
+
// Create administrative user.
$admin_user = $this->drupalCreateUser(array('administer users'));
$this->drupalLogin($admin_user);
@@ -547,7 +547,8 @@ class UserPictureTestCase extends DrupalWebTestCase {
// user's profile page.
$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.'));
- $this->assertRaw(file_create_url($pic_path), t("Image is displayed in user's profile page"));
+ $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"));
// Check if file is located in proper directory.
$this->assertTrue(is_file($pic_path), t("File is located in proper directory"));