Index: tests/mollom.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/tests/mollom.test,v
retrieving revision 1.78
diff -u -p -r1.78 mollom.test
--- tests/mollom.test	11 Jan 2011 12:20:37 -0000	1.78
+++ tests/mollom.test	11 Jan 2011 15:04:21 -0000
@@ -1992,6 +1992,9 @@ class MollomUserFormsTestCase extends Mo
     $this->setProtection('user_register_form', MOLLOM_MODE_CAPTCHA);
     $this->drupalLogout();
 
+    // Retrieve initial count of registered users.
+    $count_initial = db_query("SELECT COUNT(uid) FROM {users}")->fetchField();
+
     // Validate that the user registration form has a CAPTCHA text field.
     $this->drupalGet('user/register');
     $this->assertCaptchaField();
@@ -2006,6 +2009,10 @@ class MollomUserFormsTestCase extends Mo
     $this->postIncorrectCaptcha('user/register', $edit, t('Create new account'));
     $this->assertFalse(user_load_by_name($name), t('The user who attempted to register cannot be found in the database when the CAPTCHA is invalid.'));
 
+    // Verify that user count is still the same.
+    $count_new = db_query("SELECT COUNT(uid) FROM {users}")->fetchField();
+    $this->assertEqual($count_initial, $count_new, t('No new user record has been created.'));
+
     // Try to register with a valid CAPTCHA. Make sure the user was able
     // to successfully register.
     $this->postCorrectCaptcha('user/register', $edit, t('Create new account'));
