Issue #2080601 by mrsinguyen, mcrittenden: Remove Unused local variable from /core/modules/user/lib/Drupal/user/Tests/UserRegistrationTest.php.

8.0.x
webchick 2013-12-03 22:32:20 -08:00
parent 443db81e57
commit 33fa4ac7c8
1 changed files with 1 additions and 0 deletions

View File

@ -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();