Skip to content
Snippets Groups Projects
Commit 3f778a69 authored by Wouter Wolters's avatar Wouter Wolters Committed by Christian Kuhn
Browse files

[BUGFIX] Fix foreach array used as variabele in TranslationServiceTest

Also fix method call to flushData with an array as arguments which
should be a string.

Resolves: #94789
Releases: master
Change-Id: I19ef0f8d9b0c008b4036a2e08b674e71082cba84
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70406


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarRoman Büchler <info@buechler.pro>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarRoman Büchler <info@buechler.pro>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent cc0c62e8
Branches
Tags
No related merge requests found
......@@ -1034,10 +1034,10 @@ class TranslationServiceTest extends UnitTestCase
$expected = 'form-element-identifier ADDITIONAL LABEL EN';
$this->store->flushData($formRuntimeXlfPaths);
$this->store->flushData($formRuntimeXlfPaths[0]);
foreach ($textElementXlfPaths as $textElementXlfPaths) {
$this->store->flushData($textElementXlfPaths);
foreach ($textElementXlfPaths as $textElementXlfPath) {
$this->store->flushData($textElementXlfPath);
}
$mockFormElement = $this->getAccessibleMock(GenericFormElement::class, ['dummy'], [], '', false);
......
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