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.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/user/user.test b/modules/user/user.test
index 68e642923..3e533abf8 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -661,8 +661,8 @@ class UserCancelTestCase extends DrupalWebTestCase {
$account = user_load($account->uid, TRUE);
$this->assertTrue($account->status == 0, 'User has been blocked.');
- // Confirm user is logged out.
- $this->assertNoText($account->name, 'Logged out.');
+ // Confirm that the confirmation message made it through to the end user.
+ $this->assertRaw(t('%name has been disabled.', array('%name' => $account->name)), "Confirmation message displayed to user.");
}
/**
@@ -705,8 +705,8 @@ class UserCancelTestCase extends DrupalWebTestCase {
$test_node = node_load($node->nid, $node->vid, TRUE);
$this->assertTrue($test_node->status == 0, 'Node revision of the user has been unpublished.');
- // Confirm user is logged out.
- $this->assertNoText($account->name, 'Logged out.');
+ // Confirm that the confirmation message made it through to the end user.
+ $this->assertRaw(t('%name has been disabled.', array('%name' => $account->name)), "Confirmation message displayed to user.");
}
/**
@@ -756,8 +756,8 @@ class UserCancelTestCase extends DrupalWebTestCase {
$test_node = node_load($revision_node->nid, NULL, TRUE);
$this->assertTrue(($test_node->uid != 0 && $test_node->status == 1), "Current revision of the user's node was not attributed to anonymous user.");
- // Confirm that user is logged out.
- $this->assertNoText($account->name, 'Logged out.');
+ // Confirm that the confirmation message made it through to the end user.
+ $this->assertRaw(t('%name has been deleted.', array('%name' => $account->name)), "Confirmation message displayed to user.");
}
/**
@@ -818,8 +818,8 @@ class UserCancelTestCase extends DrupalWebTestCase {
$this->assertTrue(node_load($revision_node->nid, NULL, TRUE), "Current revision of the user's node was not deleted.");
$this->assertFalse(comment_load($comment->cid), 'Comment of the user has been deleted.');
- // Confirm that user is logged out.
- $this->assertNoText($account->name, 'Logged out.');
+ // Confirm that the confirmation message made it through to the end user.
+ $this->assertRaw(t('%name has been deleted.', array('%name' => $account->name)), "Confirmation message displayed to user.");
}
/**