From 8a65b5f8e3454102ae4d120ee05b014387c87d0f Mon Sep 17 00:00:00 2001
From: Lee Rowlands <lee.rowlands@previousnext.com.au>
Date: Tue, 9 Jun 2020 19:23:58 +1000
Subject: [PATCH] Issue #3150070 by andypost: Fix new test modules variable
 visibility

---
 core/modules/user/tests/src/Functional/UserLoginTest.php    | 6 ++----
 .../Kernel/Controller/UserAuthenticationControllerTest.php  | 2 +-
 .../user/tests/src/Kernel/Form/UserLoginFormTest.php        | 2 +-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/core/modules/user/tests/src/Functional/UserLoginTest.php b/core/modules/user/tests/src/Functional/UserLoginTest.php
index 4e2c534bf64f..7dbbf6a4fae7 100644
--- a/core/modules/user/tests/src/Functional/UserLoginTest.php
+++ b/core/modules/user/tests/src/Functional/UserLoginTest.php
@@ -19,11 +19,9 @@ class UserLoginTest extends BrowserTestBase {
   protected $defaultTheme = 'stark';
 
   /**
-   * Modules to install.
-   *
-   * @var array
+   * {@inheritdoc}
    */
-  public static $modules = ['dblog'];
+  protected static $modules = ['dblog'];
 
   /**
    * Tests login with destination.
diff --git a/core/modules/user/tests/src/Kernel/Controller/UserAuthenticationControllerTest.php b/core/modules/user/tests/src/Kernel/Controller/UserAuthenticationControllerTest.php
index b3c941cef155..23bdc6c88102 100644
--- a/core/modules/user/tests/src/Kernel/Controller/UserAuthenticationControllerTest.php
+++ b/core/modules/user/tests/src/Kernel/Controller/UserAuthenticationControllerTest.php
@@ -21,7 +21,7 @@ class UserAuthenticationControllerTest extends KernelTestBase {
   /**
    * {@inheritdoc}
    */
-  public static $modules = ['user'];
+  protected static $modules = ['user'];
 
   /**
    * @group legacy
diff --git a/core/modules/user/tests/src/Kernel/Form/UserLoginFormTest.php b/core/modules/user/tests/src/Kernel/Form/UserLoginFormTest.php
index 7737433d49bd..5e9bf65de93d 100644
--- a/core/modules/user/tests/src/Kernel/Form/UserLoginFormTest.php
+++ b/core/modules/user/tests/src/Kernel/Form/UserLoginFormTest.php
@@ -18,7 +18,7 @@ class UserLoginFormTest extends KernelTestBase {
   /**
    * {@inheritdoc}
    */
-  public static $modules = ['user'];
+  protected static $modules = ['user'];
 
   /**
    * @group legacy
-- 
GitLab