Skip to content
Snippets Groups Projects
Commit f96a47c4 authored by Christian Kuhn's avatar Christian Kuhn Committed by Stefan Bürk
Browse files

[TASK] Avoid setUpBackendUserFromFixture() in functionals

The testing-framework method setUpBackendUserFromFixture()
is kinda flawed since it does two things at once: It
creates db records and creates global state. This is
unfortunate in various cases, especially when  db
snapshoting is used. Additionally, it relies on a
class property which defaults to a fixture file
delivered by testing-framework in XML format. We
want to get rid of the .xml fixtures, and we don't
want that the testing-framework delivers default
fixtures.

The patch adapts all usages of the property and
of method setUpBackendUserFromFixture() by splitting
it into two calls to first insert a local extension
fixture .csv file and to then call the backend user
init helper method.

This finishes the removal of .xml fixture uses
in the core.

$ composer req --dev typo3/testing-framework:dev-main

Change-Id: I32a5c43a6c8176a9e9182d08e08b42b5ff279634
Resolves: #97928
Related: #96856
Releases: main
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75168


Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent d6b79386
Branches
Tags
No related merge requests found
Showing
with 52 additions and 36 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment