.../update/tests/src/Functional/UpdateSettingsFormTest.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/core/modules/update/tests/src/Functional/UpdateSettingsFormTest.php b/core/modules/update/tests/src/Functional/UpdateSettingsFormTest.php index a54b396bf8..49303b76ef 100644 --- a/core/modules/update/tests/src/Functional/UpdateSettingsFormTest.php +++ b/core/modules/update/tests/src/Functional/UpdateSettingsFormTest.php @@ -26,13 +26,6 @@ class UpdateSettingsFormTest extends BrowserTestBase { */ protected $defaultTheme = 'stark'; - /** - * A user account to modify the menu linkset settings form. - * - * @var \Drupal\user\UserInterface - */ - protected $adminAccount; - /** * Tests the update_settings form. */ @@ -45,11 +38,11 @@ public function testUpdateSettingsForm() { // Users with permission should be able to access the form. $permissions = ['administer site configuration']; - $this->adminAccount = $this->setUpCurrentUser([ + $account = $this->setUpCurrentUser([ 'name' => 'system_admin', 'pass' => 'adminPass', ], $permissions); - $this->drupalLogin($this->adminAccount); + $this->drupalLogin($account); $this->drupalGet($url); $this->assertSession()->fieldExists('update_notify_emails'); @@ -62,7 +55,7 @@ public function testUpdateSettingsForm() { $this->assertSession()->statusMessageContains('"http://example.com" is not a valid email address.', MessengerInterface::TYPE_ERROR); $this->assertSame([], $this->config('update.settings')->get('notification.emails')); - // Now fill in a valid e-mail address, now the form should be saved= + // Now fill in a valid e-mail address, now the form should be saved // successfully. $this->assertSession()->fieldExists('update_notify_emails')->setValue('sofie@example.com'); $this->submitForm([], 'Save configuration');