diff --git a/core/modules/user/src/Tests/UserCancelTest.php b/core/modules/user/src/Tests/UserCancelTest.php index 70a0448..249b408 100644 --- a/core/modules/user/src/Tests/UserCancelTest.php +++ b/core/modules/user/src/Tests/UserCancelTest.php @@ -25,12 +25,6 @@ class UserCancelTest extends WebTestBase { */ public static $modules = array('node', 'comment'); - /** - * A user with the 'administer users' permission. - * - * @var \Drupal\user\UserInterface - */ - protected function setUp() { parent::setUp(); @@ -96,8 +90,8 @@ function testUserCancelUid1() { $user1->pass_raw = $password; // Try to cancel uid 1's account with a different user. - $this->admin_user = $this->drupalCreateUser(array('administer users')); - $this->drupalLogin($this->admin_user); + $admin_user = $this->drupalCreateUser(array('administer users')); + $this->drupalLogin($admin_user); $edit = array( 'action' => 'user_cancel_user_action', 'user_bulk_form[0]' => TRUE,