From fcf3b07fc74c23bf2404d3a5ca06f86c3231c31f Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Wed, 28 Jul 2021 18:26:57 +0200
Subject: [PATCH] [TASK] Raise typo3/cms-styleguide:~11.4.0

Similar to styleguide's backend TCA data generator,
the extension can now generate a demo frontend to
render a page tree with menu having examples of
the default core content elements and demos for
ext:felogin and ext:form.
The generator is accessible through the existing
backend styleguide module below the '?' help button
in the toolbar.
The FE data will be used for core acceptance tests
soon.

The raise also brings a minor TCA change for a
pending core regression patch.

composer req --dev typo3/cms-styleguide:~11.4.0
composer req --dev typo3/cms-styleguide:~11.4.0 -d typo3/sysext/core --no-update

Change-Id: Ie1ef73400cda2b82c6379401341e69ff9e78645e
Resolves: #94658
Related: #94621
Releases: master
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70124
Tested-by: core-ci <typo3@b13.com>
Tested-by: Jochen <rothjochen@gmail.com>
Tested-by: Nikita Hovratov <nikita.h@live.de>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Jochen <rothjochen@gmail.com>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 composer.json                                   |  2 +-
 composer.lock                                   | 17 +++++++++--------
 .../Extension/BackendCoreEnvironment.php        |  1 +
 typo3/sysext/core/composer.json                 |  2 +-
 4 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/composer.json b/composer.json
index 0b91dff9deba..6af8757b2076 100644
--- a/composer.json
+++ b/composer.json
@@ -99,7 +99,7 @@
 		"phpspec/prophecy": "^1.12.2",
 		"phpstan/phpstan": "^0.12.64",
 		"phpunit/phpunit": "^8.5.13",
-		"typo3/cms-styleguide": "~11.3.1",
+		"typo3/cms-styleguide": "~11.4.0",
 		"typo3/testing-framework": "^6.8.4"
 	},
 	"suggest": {
diff --git a/composer.lock b/composer.lock
index 1bcfc023f961..ff159a87f6f0 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "085bf86c7060c81baf59d5e709b59b7b",
+    "content-hash": "ee8074721f21c25365420293db16b2ff",
     "packages": [
         {
             "name": "bacon/bacon-qr-code",
@@ -7784,21 +7784,22 @@
         },
         {
             "name": "typo3/cms-styleguide",
-            "version": "11.3.1",
+            "version": "11.4.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/TYPO3/styleguide.git",
-                "reference": "11d65d0e89df07a2946e14a7cfb7257ac80a998b"
+                "reference": "d9184095236e607622821c097e8922c4d94dd7e6"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/TYPO3/styleguide/zipball/11d65d0e89df07a2946e14a7cfb7257ac80a998b",
-                "reference": "11d65d0e89df07a2946e14a7cfb7257ac80a998b",
+                "url": "https://api.github.com/repos/TYPO3/styleguide/zipball/d9184095236e607622821c097e8922c4d94dd7e6",
+                "reference": "d9184095236e607622821c097e8922c4d94dd7e6",
                 "shasum": ""
             },
             "require-dev": {
                 "codeception/codeception": "^4.1",
                 "codeception/module-asserts": "^1.2",
+                "codeception/module-cli": "^1.1",
                 "codeception/module-webdriver": "^1.1",
                 "phpstan/phpstan": "^0.12.37",
                 "typo3/cms-about": "dev-master",
@@ -7838,7 +7839,7 @@
                     "role": "Contributor"
                 }
             ],
-            "description": "TYPO3 CMS Extension to test everything in the TYPO3 Backend",
+            "description": "TYPO3 extension to showcase TYPO3 Backend capabilities",
             "homepage": "https://github.com/TYPO3/styleguide",
             "keywords": [
                 "style guide",
@@ -7847,9 +7848,9 @@
             ],
             "support": {
                 "issues": "https://github.com/TYPO3/styleguide/issues",
-                "source": "https://github.com/TYPO3/styleguide/tree/11.3.1"
+                "source": "https://github.com/TYPO3/styleguide/tree/11.4.0"
             },
-            "time": "2021-06-29T13:47:56+00:00"
+            "time": "2021-07-28T16:17:06+00:00"
         },
         {
             "name": "typo3/testing-framework",
diff --git a/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php b/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php
index 342c058fe02d..34b23b09ba4d 100644
--- a/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php
+++ b/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php
@@ -88,6 +88,7 @@ class BackendCoreEnvironment extends BackendEnvironment
         // styleguide generator uses DataHandler for some parts. DataHandler needs an initialized BE user
         // with admin right and the live workspace.
         Bootstrap::initializeBackendUser();
+        $GLOBALS['BE_USER']->user['username'] = 'acceptanceTestSetup';
         $GLOBALS['BE_USER']->user['admin'] = 1;
         $GLOBALS['BE_USER']->user['uid'] = 1;
         $GLOBALS['BE_USER']->workspace = 0;
diff --git a/typo3/sysext/core/composer.json b/typo3/sysext/core/composer.json
index cfa2907d7700..f3bf7b99a548 100644
--- a/typo3/sysext/core/composer.json
+++ b/typo3/sysext/core/composer.json
@@ -80,7 +80,7 @@
 		"php-webdriver/webdriver": "^1.9.0",
 		"phpspec/prophecy": "^1.12.2",
 		"phpstan/phpstan": "^0.12.64",
-		"typo3/cms-styleguide": "~11.3.1",
+		"typo3/cms-styleguide": "~11.4.0",
 		"typo3/testing-framework": "^6.8.4"
 	},
 	"suggest": {
-- 
GitLab