Skip to content
Snippets Groups Projects
Commit 4f8db0f4 authored by Christian Kuhn's avatar Christian Kuhn Committed by Markus Klein
Browse files

[TASK] Add additional test to ArrayUtility::getValueByPath()

Verify getValueByPath() can return a sub part of a given array.

Resolves: #85009
Releases: master
Change-Id: Idc77809b960534d2b2694002c792f42d710ffa81
Reviewed-on: https://review.typo3.org/56963


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 63510069
Branches
Tags
No related merge requests found
......@@ -423,6 +423,19 @@ class ArrayUtilityTest extends UnitTestCase
'foo/baz',
$testObject
],
'sub array' => [
[
'foo' => [
'bar' => [
'baz' => 42,
],
],
],
'foo/bar',
[
'baz' => 42,
],
],
'enclosed path' => [
[
'foo/bar' => [
......
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