From 33fa4ac7c8939bcf3c136efbb9370e457a310d3b Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 3 Dec 2013 22:32:20 -0800 Subject: [PATCH] Issue #2080601 by mrsinguyen, mcrittenden: Remove Unused local variable from /core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php. --- core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php b/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php index d952f8c7745..a164da94968 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php @@ -87,6 +87,7 @@ class UserRegistrationTest extends WebTestBase { $this->container->get('entity.manager')->getStorageController('user')->resetCache(); $accounts = entity_load_multiple_by_properties('user', array('name' => $name, 'mail' => $mail)); $new_user = reset($accounts); + $this->assertNotNull($new_user, 'New account successfully created with matching passwords.'); $this->assertText(t('Registration successful. You are now logged in.'), 'Users are logged in after registering.'); $this->drupalLogout();