Commit 89e8e0c6 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Add another test scenario to ArrayUtility::flatten()

Enrich existing test data providers of ArrayUtility::flatten()
with another scenario to see how it behaves on details.

Change-Id: I3e97689efc2f72e1a9532b12652c98ecaef67556
Resolves: #97794
Releases: main
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74962

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 59aa5c0b
......@@ -1270,6 +1270,24 @@ class ArrayUtilityTest extends UnitTestCase
'second.secondSub' => 2,
],
],
'nested array of 2 levels and values on first level' => [
[
'first' => 'first',
'first.' => [
'firstSub' => 1,
],
'second' => 'second',
'second.' => [
'secondSub' => 2,
],
],
[
'first' => 'first',
'first.firstSub' => 1,
'second' => 'second',
'second.secondSub' => 2,
],
],
'nested array of 2 levels with faulty dots' => [
[
'first.' => [
......
Markdown is supported
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